← Your `.sort()` is mutating state. JavaScript finally gave you the fix.Quiz
Immutable array methods: toSorted, toReversed, toSpliced, with
The classic array methods mutate in place and quietly break reference-based state updates. The ES2023 immutable counterparts return a new array instead. Know which mutates, which copies, and what each returns.
questions6
pass mark70%
feedbackinstant
No account needed. Every answer is explained as you go, with a reference to the spec or MDN — pass and you can claim a certificate.