Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Operators</h2>
<h3>Comparison</h3>
<p>Assign 5 to x, and display the value of the comparison (x === "5").</p>
<p id="demo"></p>
<script>
let x = 5;
document.getElementById("demo").innerHTML = (x === "5");
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_comparison3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:18:27 GMT -->
</html>