javascript print index of array element code example Example: js get index of item in array array.indexOf("item");