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>Variables can be emptied if you set the value to <b>undefined</b>.</p> <p id="demo"></p> <script> let car = "Volvo"; car = undefined; document.getElementById("demo").innerHTML = "<p>The value of car is " + car + "<p>The typeof car is " + typeof car; </script> </body> </html>