I'm really a beginner at Javascript. How can I use a script variable from HTML to another js file? I have tried to import and export module. But, I couldn't work.
Here is the js.fiddle: https://jsfiddle.net/hfngowtq/
and that is my error:
1.js:1 GET .../new.html net::ERR_ABORTED 404 (NOT FOUND)