src/index.js
//make function to make GET requests from API
make function to make GET requests from API
make function to make GET requests from API
function fetchFiction() {
        fetch(apiFiction+apiKey)
        .then(res => res.json())
        .then(data => {
            displayList(data.results.books)
        })
    }
function fetchFiction ( ) { fetch ( apiFiction + apiKey ) . then ( res => res . json ( ) ) . then ( data => { displayList ( data . results . books ) } ) }
make function to make GET requests from API
make function to make GET requests from API