let array = [1, 2, 3, 'text']; for (let entry of array) { if(entry == 3) { break; } console.log(entry); } // Output: // 1 // 2.
確定! 回上一頁