Open AlexHamn opened 2 years ago
I have one small suggestion that makes sense for an actual leaderboard, and that would be to sort your scoreList
by score before creating the list, in this line:
https://github.com/German-Cobian/Top-Ranks/blob/8108512e9edf5bdbd34082e6900e5cd4f665368a/src/modules/createList.js#L4
You can place something like this: scoreList.sort((a, b) => b.score - a.score);
before this line above.
However, I think it will be nice if you can add a validation to the form concerning the max number of user value input to the score.
Great job so far! Your code is very clean and readable, keep it up 👍