Thảo Justin
New member
What will be the output of the following JavaScript code?
A. 10
B. Error
C. 1
D. 5
Code:
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
B. Error
C. 1
D. 5