Where to put the script tag?
Intro
While using External JavaScript file there are 2 ways by which you can attach the file to html document
In the head tag
Befor body tag is closed
Now according to how you attached your javascript file in html document, it may behave different...
gauravvala.hashnode.dev2 min read