I tried practising Dom in js with a video I watched.
Html
input id="hi" type="submit"
Javascript
var hi = document.getElementById('hi');
hi.text content ='hello';
But the text content didn't change. It instead gave an error: property of null. What is my mistake and what does that mean