I am getting an error while trying to access the string AFH(currencyId). The error I am getting is "Uncaught TypeError: Cannot read property 'Continents' of undefined"
Here is how I am trying to access the string.
(1) After I made ajax request to the endpoint of the Json file, I stored the info(data) under variable named data when the ajax request is success.
(2) This is where the error comes from:
console.log(data.Continents[0].Countries[0].CurrencyId)
Can anyone help me understand what I am missing?