Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>The typeof operator returns the type of a variable or an expression.</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = typeof "john" + "<br>" + typeof 3.14 + "<br>" + typeof false + "<br>" + typeof [1,2,3,4] + "<br>" + typeof {name:'john', age:34}; </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_datatypes_typeof by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:24:09 GMT --> </html>
Result:
Try it Yourself - © w3schools.com