@mattstuddert
Posted
Hey Charles, great work on this challenge. One way of getting the neighbouring country names would be to loop through the array of all the countries using .map()
and create a new array consisting of the border countries with their name
and alphaCode
as properties. This would avoid API calls for each country.
Have a look into that, but let me know if you have any questions 👍