[Solved] In JavaScript how would I create a variable to go through an array and remember not only the highest value but also the position of that value

[ad_1]

In JavaScript how would I create a variable to go through an array and remember not only the highest value but also the position of that value

[ad_2]

solved In JavaScript how would I create a variable to go through an array and remember not only the highest value but also the position of that value