Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Operators</h1> <h2>The typeof Operator</h2> <p>The value (and the data type) of a variable with no value is <b>undefined</b>.</p> <p id="demo"></p> <script> let car; document.getElementById("demo").innerHTML = car + "<br>" + typeof car; </script> </body> </html>