I have a JSON file with content that looks like this:
//filename: b2021.json
[
//file content
]
And I have the following JS file:
//filename: code.js
arrayName = []
function write(){
window.alert(arrayName); //This function is called on a HTML file
}
And my objective is to load the content from "b2021.json" into "arrayName" but I can't seem to find the right way to do it. Thanks in advance for those who help!