Design comparison
Solution retrospective
So earlier this year, I actually tried solving this challenge. Had a lot of issues trying to maintain the theme state. At a point, I got so frustrated and had to stop. Fast forward to sometime last week, I was so stressed from the current project my internship organization was working on, so i remembered I still hadn't come back to this. Decided then to use this to relax. I started from the very beginning again and first thing i noticed was that I was already reasoning the logic I would need to get the functionalities working before i even started. Talk about GROWTHHH!!! I also noticed that it all seemed so easy! I couldn't even believe that this same thing was what gave me a tough time just a few months ago! Super super excited about how far I've come! Looking forward to much harder challenges.
What challenges did you encounter, and how did you overcome them?The only thing I'll say was a bit of a challenge was getting the border countries. This was because in the api, border countries is saved as cca3 codes. Thus I had to figure out a way to match the cca3 codes in border country to the cca3 codes in the main api to enable me extract the country full names. I was able to solve this by first mapping through the border countries array, then using a find() on the main countries array to enamble me return a new array with the countries whose cca3 match the items in the border countries array.
What specific areas of your project would you like help with?None. Everything works fine, thank you!
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord