I am working on a simple vanilla js project where we can't use node js and babel and I am trying to import an array from a json file and then I got this error:
Uncaught SyntaxError: Cannot use import statement outside a module
so now I want to find a way to map through the array(use .map() on it) without having to copy and paste it from the json file and put it manually in app.js
Any idea how to do that without node or webpack?