Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Operators</h1>
<h2>The + Operator</h2>
<p>y = 5, calculate x = y + 2:</p>
<p id="demo"></p>
<script>
let y = 5;
let x = y + 2;
document.getElementById("demo").innerHTML = "Value of x is: " + x;
</script>
</body>
</html>