Let's assume we have the following variables set:
var number1 = 48;
var number2 = 420;
var number3 = 39;
If we want to determine the highest value among them, we can use:
let maximumValue = Math.max(number1, number2, number3);
What if we want to know which specific variable holds the max value? In this case, we are only dealing with 3 variables, but what about a scenario with 20 or even 500 variables. We need to efficiently identify the max value along with its corresponding variable name.