This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The typeof operator returns the type of a variable or an expression.
document.getElementById("demo").innerHTML = typeof "john" + "<br>" + typeof 3.14 + "<br>" + typeof true + "<br>" + typeof false + "<br>" + typeof x;
string number booleans undefined