fetch request javascript .json code example
Example: javascript fetch json
fetch('./yourjson.json')
.then((response) => response.json())
.then((data) => {
console.log(data);
})
fetch('./yourjson.json')
.then((response) => response.json())
.then((data) => {
console.log(data);
})