so I use JavaScript and I have an array of variables.
var a=5,b=10,c=3,d=11,e=0; //5 Variables with randomly chosen values
var myArray=[a,b,c,d,e];
myArray.sort(); //sort them, so the lowest value or variable is on first place
alert("This Variable has the lowest value: " + myArray[0]);
//tell me the variable with the lowest value
So basically, i will get this text: "This Variable has the lowest value: 0"
But what i want is: "This Variable has the lowest value: e"
How can i return the variable, instead of the value of the variable?
Best Regards qweret