JavaScript hiện đại: từ cơ bản đến nâng cao (ES2026)›13. Tổng kếtQuiz tổng kếtBài kiểm tra tổng hợp kiến thức toàn khóa học.Question 1.`[3, 3, 3]``[0, 1, 2]``[undefined, undefined, undefined]`Question 2.`An An``An undefined``TypeError`Question 3.`1 2 3``1 3 2``3 1 2`Question 4.Select all correct answers.`arr.toSorted((a, b) => a - b)``[...arr].sort((a, b) => a - b)``arr.sort((a, b) => a - b)`Question 5.`{ le: [1, 3], chan: [2, 4] }``Map { "le" => [1, 3], "chan" => [2, 4] }``[[1, 3], [2, 4]]`Question 6.`Promise.all(urls.map(fetch))`Một nhóm 5 worker async cùng lấy việc từ hàng đợi chung (như `mapLimit`)`urls.forEach(async (u) => await fetch(u))`Question 7.Select all correct answers.Iterator helpers (`.map`, `.take` trên iterator)`Set.prototype.union``Promise.try``Array.fromAsync`Question 8.Khi garbage collector chạyNgay khi thoát khỏi khối chứa nó, kể cả khi có lỗiKhi gọi `dispose()` thủ côngQuestion 9.`true``false``TypeError`Question 10.Để tăng tốc độ parseVì bảo mật: engine từ chối thực thi nếu server trả về thứ không phải JSONĐể JSON có named exportCheck Mark as completed← PreviousNext →Comments
Comments