Fix sorting co2Scale to not be in place, change finding scaleIndex to be equal to closestNum (not greater than).
Previously co2Scale was sorted in place and scaleIndex was taken for a value greater than closestNum (if one existed, otherwise it would return -1).
After the changes, scaleIndex should correctly get the exact index of the closestNum value in co2Scale.
Probably also requires the same changes to Web-Dev-For-Beginners/5-browser-extension/solution/ and Web-Dev-For-Beginners/5-browser-extension/3-background-tasks-and-performance/translations/.
Fix sorting co2Scale to not be in place, change finding scaleIndex to be equal to closestNum (not greater than).
Previously co2Scale was sorted in place and scaleIndex was taken for a value greater than closestNum (if one existed, otherwise it would return -1). After the changes, scaleIndex should correctly get the exact index of the closestNum value in co2Scale.
Probably also requires the same changes to Web-Dev-For-Beginners/5-browser-extension/solution/ and Web-Dev-For-Beginners/5-browser-extension/3-background-tasks-and-performance/translations/.