function fetchMovies() {
    return fetch("./data/movies.json")
        .then(response => response.json())
        .then(movies => movies)
        .catch(error => console.log(error));
}
//This will use the browser's Fetch API to get the movies data from movies.json
This will use the browser's Fetch API to get the movies data from movies.json
This will use the browser ' s Fetch API to get the movies data from movies . json
function fetchMovies() {
    return fetch("./data/movies.json")
        .then(response => response.json())
        .then(movies => movies)
        .catch(error => console.log(error));
}
function fetchMovies ( ) { return fetch ( "./data/movies.json" ) . then ( response => response . json ( ) ) . then ( movies => movies ) . catch ( error => console . log ( error ) ) ; }
This will use the browser's Fetch API to get the movies data from movies.json
This will use the browser ' s Fetch API to get the movies data from movies . json