Tables Example

<!DOCTYPE html>
<html>
<body>

<script>
for(j=2;j<=20;j++){
for (i = 1; i <= 10; i++) {
    document.write(j+" x "+i+" = "+(j*i)+"<br>");
}
 document.write("======= Completed : "+j+"<sup>th</sup> table ============<br>");
}
</script>

</body>
</html>

Example -2

<!DOCTYPE html>
<html>
<body>

<h1>My First Web Page</h1>
<p>My First Paragraph.</p>

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML = 5 + 6;
</script>

</body>
</html>