Where is javascript included? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Where is javascript included?

Playing around with javascript in the code playground i figured that the javascript file is included in the head of the html file. That creates some errors. Is it a bug, or are we supposed to use the script tag to avoid this problem?

12th Mar 2018, 11:04 PM
limb
limb - avatar
2 Answers
0
oh, so this is ok. Thanks for the window.onload suggestion :)
13th Mar 2018, 11:50 AM
limb
limb - avatar