@ianbuenSubmitted over 1 year ago
kdiffin
@diffimAll comments
- @diffimPosted over 1 year ago
bro great job i already finished my challenge but looking at ur code i got some inspiration to do better, like destructuring objects more and using stuff like getNativeName() instead of just having that logic scattered all over the place as consts
0 - @Djarma12Submitted about 2 years ago
This challenge was very interesting, the problem was that it took me a long time to solve each problem, but in the end I succeeded.
I will appear any suggestions on how to solve this.
Any suggestions is highly welcome!
@diffimPosted about 2 years agohey i noticed that the countries at first werent alphabetically ordered a way you can do this is by sorting the allcountries object with this
.sort(function (a, b) { if (a.name.common < b.name.common) { return -1; } if (a.name.common > b.name.common) { return 1; } return 0; });
0