<html>
<<head>
<title>intro js</title>
</head>
<body>
<h1 id="myH"></h1>
<p id="m"></p>
<h1>JavaScript Variables</h1>
<p>Sum of two Numbers</p>
<p id="result"></p>
<script>
document.getElementById("myH").innerHTML = "JavaScript Comments";
document.getElementById("m").innerHTML = "My first paragraph.";
var num1 = 5;
var num2 = 6;
var sum = num1 + num2;
document.getElementById("result").innerHTML = "The total sum is: " + sum;
</script>
</body>
</html>
To embed this project on your website, copy the following code and paste it into your website's HTML: