Edit This Code:
See Result »
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var x = 5; // Declare x, give it the value of 5 var y = x + 2; // Declare y, give it the value of x + 2 document.getElementById("demo").innerHTML = y; // Write y to demo </script> <p><strong>Note:</strong> The comments are not executed.</p> </body> </html>
Result: