Nguyễn Linh Trang
New member
What will be the output of the following JavaScript code?
A. True
B. False
C. Error
D. Undefined
Code:
function myFunction()
{
var x = null;
document.getElementById("demo").innerHTML = Boolean(x);
}
B. False
C. Error
D. Undefined