Skip to content
IT Courses
Courses
Blog
Search
/
VI
Quiz tổng kết · JavaScript hiện đại: từ cơ bản đến nâng cao (ES2026)
Curriculum
›
13. Tổng kết
Quiz tổng kết
Mark as completed
← Previous
Next →
Comments
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ạy
Ngay khi thoát khỏi khối chứa nó, kể cả khi có lỗi
Khi gọi `dispose()` thủ công
Question 9.
`true`
`false`
`TypeError`
Question 10.
Để tăng tốc độ parse
Vì 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 export
Check
JavaScript hiện đại: từ cơ bản đến nâng cao (ES2026)
Bài kiểm tra tổng hợp kiến thức toàn khóa học.
Comments