Creating the workaround project on my computer

I have completed the workAround project in javascript using modules but now I want to play around with creating modules on my own computer locally. I have copied and pasted the completed files employees.js and workAround.js into 2 files on my computer and saved them as Javascript. I have added them to a HTML (in the body added a and workAround.js script tag) but the import statement is not liked and I get a CORS error. How do I run javscript with modules? Do I need to use HTML?


Here’s a link from google’s developer site that explains everything about modules including how to use them in an HTML script tag