Phạm Thanh Nam
New member
What will be the output of the following JavaScript code?
A. 20
B. 12
C. undefined
D. error
Code:
var obj=
{
length:20,
height:35,
}
if (‘breadth' in obj === false)
{
obj.breadth = 12;
}
console.log(obj.breadth);
B. 12
C. undefined
D. error