How to Reverse Arrays in JavaScript Without Using .reverse()
In-Place & Out-of-Place
Aug 31, 2018 · 6 min read
A typical JavaScript challenge or interview question has to do with reversing arrays in-place and out-of-place. Specifically, take this problem from Eloquent JavaScript, 2nd Edition:
Write two functions reverseArray and reverseArrayInPlace. The first, reverseArray, takes an array as an argument…
