Edit This Code:
<!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:
Try it Yourself - © w3schools.com
Privacy Policy