Submitted over 1 year ago
Rest Countries API with Pure HTML,CSS and JavaScript
@gauyash
Design comparison
SolutionDesign
Community feedback
- @AlekseiBestuzhevPosted over 1 year ago
Hello. Try to open China and you will see an error. This is due to the fact that you are using the search by name. From the documentation: "Search by country name. If you want to get an exact match, use the next endpoint. It can be the common or official value". China, Macau, Hong Kong and Taiwan have a match in the official name, and in the response array from the server all 4 come and they are all displayed on the page
Marked as helpful0@gauyashPosted over 1 year ago@AlekseiBestuzhev Thanks for your suggestion. I will look into the matter. PS - I have corrected the error
0
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