What will be the output of the following JavaScript code? [code] function myFunction() { var x = 10 / "H"; document.getElementById("demo"

Vy Bùi

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

Tìm kiếm

Back
Top