I am trying to do something very simple but I can't get it to work. I have 3 variables:
abc = 123
def = 456
ghi = 789
I created array like this:
numbers = [abc, def, ghi]
Then I did this:
Math.max.apply(null, numbers)
It returned 789, then I tried to do:
numbers.indexOf(789)
but it returns 2 = index of ghi, problem is I wanna find "ghi" name exactly and I am struggling.