Tell us what’s happening:
I get this error “You should declare a response variable inside the fetchCardsData method.” I m not sure what I am doing wrong. Can someone help?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: index.ts */
// User Editable Region
try {
let response = await fetch(`${CDN_URL}/card_data.json`);
} catch(e) {
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Challenge Information:
Build a Fortune Telling App - Step 24