I'm trying to read JSON file into HTML, by using fetch. The problem is that when i open console in chrome it gives me an error. Here's the code. Any suggestions?
fetch('books.json')
.then(response=>response.json())
.then(data => {
console.log(data);
})