Question:
I have wrote script for an element with id “demo”
But it’s not returning.
Any idea ?
Thank You
Answer:
I think the problem comes from the fact that the p tag does not exist when it is called in the js script. Maybe try to add a ‘defer’ in the script tag or put your script tag at the end of your body ?If you have better answer, please add a comment about this, thank you!