The `indexOf()` method in JavaScript returns the index of the first occurrence of a specified element in an array or -1 if it is not found.
確定! 回上一頁