JavaScript allows you to display the information in several ways. You can use any of them according to your need.
1 2 3 4 5 6 7 |
<p id="demo"></p> <script> window.alert(5 + 6); document.write(5 + 6); document.getElementById("demo").innerHTML = 5 + 6; console.log(5 + 6); </script> |