A
Q. Which of the following is the correct output for the following JavaScript code:
Code:
var x=3;
var y=2;
var z=0;
If(x==y)
document.write(x);
elseif(x==y)
document.write(x);
else
document.write(z);
var y=2;
var z=0;
If(x==y)
document.write(x);
elseif(x==y)
document.write(x);
else
document.write(z);
- Correct Answer - Option(B)
- Views: 25
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.