<html>
<body>
<h2>The JavaScript typeof Operator</h2>
<p>The typeof operator returns the type of a variable or expression.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var y = "John";
var x = + y;
document.getElementById("demo").innerHTML = typeof y + "<br>" + typeof x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_typeof4 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:39:32 GMT -->
</html>