HTML:
<p id="demo"></p>
the script:
document.getElementById("demo").innerHTML = 5 + 6;
It is supposed to show the result but nothing happens. I added a separate myScript.js
file to write the code. In HTML I wrote:
<script type="text/javascript" src="myScript.js"></script>
What has to be the problem ?