find the index of the largest element in an array code example Example: javascript index of biggest number arr.indexOf(Math.max(...arr))