Edit This Code:
See Result »
<!DOCTYPE html> <html> <body> <p>JavaScript statements are separated by semicolon.</p> <p id="demo1"></p> <script> a = 1; b = 2; c = a + b; document.getElementById("demo1").innerHTML = c; </script> </body> </html>
Result: