So I got a .json file which has following written in it:
{
"a": "10",
"b": "59",
"c": "581",
"d": "1"
}
And I want the 3 highest ones (581, 59, & 10) to be converted into a text in descending order so it looks like this:
1. c - 581
2. b - 59
3. a - 10
So i can just display the top 3 in the console window like console.log(order);
I haven’t written any proper code which I can provide so I am very sorry.