As an absolute newbie to Javascript I think my issue lies with the code. I created an html index file and a home.js file and get a type error. The error is not obvious to me, perhaps someone has an answer.
index file
<body>
<script src="home.js">
<p id="SomeText"></p>
</script>
</body>
</html>
home.js file
console.log('good morning');
// alert('Oh happy day')
document.getElementById("SomeText").innerHTML = 'Okay';