Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Country-info website

Adeola 320

@adex-hub

Desktop design screenshot for the REST Countries API with color theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


What challenges did you encounter, and how did you overcome them?

Some countries did not have borders. Hence as I attempted entering the route of countries with borders, an error occurred I fixed it by doing this.


            
              Border Countries:
            
            {country.borders === undefined && (
              
                {country.name.common} has no border countries
              
            )}
            
              {country.borders?.map((border, i) => (
                {border}
              ))}
            
          

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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