Wanderlust - ReferenceError: response is not defined main.js:31 at getVenues (VM7 main.js:25)

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! :slight_smile:

Hello, and welcome to the forums!

Part of your code is using Response and part of it is using response as variables. Variables are case-sensitive so you need to be consistent