I have a question in the below statement, provided in the tip section in chapter two | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I have a question in the below statement, provided in the tip section in chapter two

If you want to get elements in the body, it's a good idea to place your script at the end of the body tag. ------------ Why should we use <script> at the end of the body?

4th Mar 2020, 7:08 PM
akshay
akshay - avatar
1 Answer
+ 3
To give other DOM Elements time to load.
4th Mar 2020, 7:21 PM
Kevin ★