D
Q. Which of the following is the correct output for the following JavaScript code:
Code:
varx=5,y=1
var obj ={ x:10}
with(obj)
{
alert(y)
}
var obj ={ x:10}
with(obj)
{
alert(y)
}
- Correct Answer - Option(A)
- Views: 496
- Filed under category JavaScript
Discusssion
Login to discuss.