For those whose javascript code not running. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

For those whose javascript code not running.

if u have used external javascript. if u have included it internally. and javascript is not showing at output.

18th Dec 2016, 8:30 PM
manish rawat
manish rawat - avatar
3 Answers
+ 2
write script tag at the end just before body tag. everthing will work fine. why?? because code runs top to bottom. and when sometimes we use script tag above then elements(id class and tags)and all accessed are actually not present at that point of time.😉
18th Dec 2016, 8:33 PM
manish rawat
manish rawat - avatar
+ 1
lol no, the position of <script> tags only affects the speed of how the .html loads. If your script is not showing an output, it's because your script has errors.
19th Dec 2016, 5:29 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 1
but bro it happened with me. may be because of editor or browser
19th Dec 2016, 6:18 AM
manish rawat
manish rawat - avatar