Tryit Editor v3.6

PHOTO EMBED

Wed Oct 14 2020 11:24:59 GMT+0000 (Coordinated Universal Time)

Saved by @abhishekgangwar

<!DOCTYPE html>
<html>
<body>
​
<h2>JavaScript Comparison</h2>
​
<p>Assign 5 to x, and display the value of the comparison (x == 8):</p>
​
<p id="demo"></p>
​
<script>
var x = 5;
document.getElementById("demo").innerHTML = (x == 8);
</script>
​
</body>
</html>
​
content_copyCOPY

https://www.w3schools.com/js/tryit.asp?filename