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();.