Hi I'm new in js and I'm trying to understand local/global scope when importing js module.
Below is my html/js file which is working.
Below is my html/js file which is not working.
Please tell me the reason why I have to put document.querySelector~~~ and why the second one doesn't work..
