Hi! I’m having issues with step 13, when I try to check the browsers javascript console it keeps saying
“ReferenceError: response is not defined main.js:31 at getVenues (VM7 main.js:25)”
and I can seem to figure out how to see the response logged to the console…
also to make sure that my code is correct, so this is my code:
// Add AJAX functions here:
const getVenues = async () => {
const city = input.val()
const urlToFetch = (`{url}{city}&limit=10&client_id={clientId}&client_secret=${clientSecret}&v=20201216`)
try{
const Response = await fetch(urlToFetch);
if(response.ok){
console.log(Response);
}
}catch(error){
console.log(error)
}
}
const getForecast = () => {
}
Thank you so much!