0
What is wrong with my code
https://code.sololearn.com/W05pQXQOlymv/#js Whenever I run the code I get the error: Uncaught TypeError: Cannot set property 'innerhtml' of null Line: 1
3 Answers
+ 3
You don't have an HTML element that's named 'demo.' So place id="demo" on whatever element you're trying to reference.
+ 1
<div id="demo"></div>
0
Could you show an example of how to go about doing this?