0

How to reverse an array in place in JavaScript

JavaScript
const array1 = ['one', 'two', 'three'];

const reversed = array1.reverse();
console.log(reversed); // ["three", "two", "one"]
RUN
add comment
Suggest a different solution or add another example