Question:medium

Explain the purpose of the following JavaScript array methods:
(a) concat()
(b) reverse()

Show Hint

Be careful with reverse()! Because it mutates the original array in-place, if you want to keep the original array unchanged, make a copy first using the spread operator or slice(): const reversed = [...original].reverse();.
Updated On: Jun 29, 2026
Show Solution

Solution and Explanation

Was this answer helpful?
0