0
Why I am not being able to use innerHTML?
I tried replace contents in {{ }} with a new value. And it worked when I used console.log() to display output. But innerHTML shows some kind of error warning. Can you help me how to this scenario. https://code.sololearn.com/WmhqwMGibG14/?ref=app
1 Odpowiedź
+ 6
Amal Benny you need to wrap your Javascript code inside window.onload event. This is because SoloLearn links Javascript in head section rather than body.
https://code.sololearn.com/W1ThoVnicnlI/?ref=app