Why won't my shortened JavaScript code for changing my HTML work?
I have working code that changes my HTML and arranges classes and data from highest to lowest, but it is very lengthy. I would like to make it shorter. I recently learned JavaScript this week, so it might just be…