Wanderlust - Step 20, Console Error

Hi there,
Within the Wanderlust project step 20, I’m inspecting the console. Looking for another set of eyes to debug the syntax error.

here’s the code (including the line that the console is reporting the error with
const getVenues = async () => {
const urlToFetch = url + city + ‘&limit=10&client_id=’ + clientId + ‘&client_secret=’ + clientSecret + ‘&v=20180401’;

try {
const response = await fetch(urlToFetch);
if (response.ok) {
const jsonResponse = await response.json();
const venues = jsonResponse.response.groups[0],items.map(item => item.venue);
console.log(venues);
return(venues);
}
}catch(error){
console.log(error)
};
}

Hey there!

You need to declare “const city” for the “urlToFetch”. Looks like it is the missing const in your code.