Question 12
Back to Exercise
Which method changes the array it is called on?
- A slice()
- B concat()
- C reverse() Correct
- D toSorted()
Correct Answer: Option C
reverse (like sort, splice, push and fill) works in place and returns the same array. slice, concat and toSorted return new arrays.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!