JavaScript program for typeof

 var x='y';

x=-34.50;

x=false;

x=undefined;

x=["HTML","CSS","JS"];

x={name:"Gaurav Soni", country:"India"}

document.write(x);

document.write("<br>");

document.write(typeof x);

Output






Comments