// reverse array elements in javascript const arr = ["first", "second", "third"]; arr.reverse(); // Mutates the array console.log(arr); // ["third", "second", "first"]