Trang Esther
New member
What will be the output of the following JavaScript code?
A. true
B. false
C. 0
D. 1
Code:
function myFunction()
{
var x = "";
document.getElementById("demo").innerHTML = Boolean(x);
}
B. false
C. 0
D. 1