const set1 = new Set([1, 2, 3, 4, 5]);. 2. . 3. console.log(set1.has(1));. 4. // expected output: true. 5. . 6. console.log(set1.has(5));.
確定! 回上一頁