find the max value in a array referencing another code example Example: javascript index of biggest number arr.indexOf(Math.max(...arr))