Implementing Ranks in my game (idk how)

So, I had a post a bit ago about ranks, but I have no Idea how to implement them in my code (html/js) so if someone could help that would be great.

more context and code: How can I make a ranking system?