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> <h2>JavaScript Comparisons</h2> <p>This returns false (as expected) because x is not equal to 10:</p> <p id="demo"></p> <script> let x = 0; document.getElementById("demo").innerHTML = Boolean(x == 10); </script> </body> </html>