Find the value of the first element with a value over 18: const ages = [3, 10, 18, 20]; ... The find() method executes a function for each array element.
確定! 回上一頁