get the index of the maximum number in a array in javascript code example Example: javascript index of biggest number arr.indexOf(Math.max(...arr))