The indexOf() method returns the index of the first occurrence of an element in an array. For example: let chars = ['A', 'B', 'A', 'C', 'B']; chars.
確定! 回上一頁