Hey Tony, One way to do this without using pop or push (only length) is to modify your for loop to start from the given array's length minus 1 (which is equal to the last index of the array) and then iterate down to 0 (first index of array of course) and use a counter variable to store the values in a temporary array that are taken from the end of the received array: ```javascript var x = [-3,5,1,3,2,10]; function reverse (a) { var b = [], counter = 0; for (var i = a.length-1; i >= 0; i -= 1) { b[counter] = a[i]; counter += 1; } return b; } console.log(reverse(x)); ``` Answer from Marcus Parsons on teamtreehouse.com
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › reverse
Array.prototype.reverse() - JavaScript | MDN
The reverse() method of Array instances reverses an array in place and returns the reference to the same array, the first array element now becoming the last, and the last array element becoming the first. In other words, elements order in the array will be turned towards the direction opposite ...
🌐
W3Schools
w3schools.com › jsref › jsref_reverse.asp
JavaScript Array reverse() Method
The reverse() method reverses the order of the elements in an array.
Discussions

Reversing an Array in JavaScript.
Tony Nguyen is having issues with: Hello Fellow Students! I am trying to figure out an algorithm problem to where I would have to reverse the order of an Array. Fo... More on teamtreehouse.com
🌐 teamtreehouse.com
2
May 15, 2015
How can I reverse an array in JavaScript without using libraries? - Stack Overflow
I am saving some data in order using arrays, and I want to add a function that the user can reverse the list. I can't think of any possible method, so if anybody knows how, please help. More on stackoverflow.com
🌐 stackoverflow.com
How do I reverse an array?
There’s a reverse method on arrays. All you would need here is array.reverse() But you’re missing the closing quotes. Right now it’s an array of one string. More on reddit.com
🌐 r/learnjavascript
17
5
February 10, 2022
How do i reverse an array in javaScript without .reverse()
I'm trying to reverse the contents of an array. My approach works well when the contents of the said array are of same type. but once they're of different types it just doesn't work. Constraint is ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
SitePoint
sitepoint.com › javascript
Reversing a JavaScript array without .reverse() / code explanation - JavaScript - SitePoint Forums | Web Development & Design Community
December 28, 2017 - I was working on a problem on Codewars.com and I stumbled upon an interesting solution on StackOverflow. Someone was asking how to reverse an array WITHOUT using .reverse(). Here is one solution someone wrote: let reverse=a=>[...a].map(a.pop,a) It helps me to look at it like this: (but I still don’t completely understand it) let reverse = (a) => { return [...a].map(a.pop, a); }; Original thread on StackOverflow I have used the spread operator, but not in this situation.
🌐
Medium
medium.com › dailyjs › code-recipe-how-to-reverse-an-array-in-javascript-4a0306001d28
Code Recipe: How to Reverse an Array in JavaScript | by Samantha Ming | DailyJS | Medium
August 20, 2019 - Here are some recipes that won’t mutate the original array. Let’s take a look 👀 · const originalArray = ['a', 'b', 'c']; const newArray = originalArray.slice().reverse();console.log(originalA… ... JavaScript news and opinion.
🌐
JavaScript in Plain English
javascript.plainenglish.io › javascript-reverse-array-without-modifying-dac063623490
How to Reverse an Array without Modifying in JavaScript | by Tari Ibaba | JavaScript in Plain English
August 21, 2024 - To reverse an array without modifying the original, we can clone the array with the slice() method and reverse the clone with the reverse() method.
Find elsewhere
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Array › toReversed
Array.prototype.toReversed() - JavaScript | MDN
July 10, 2025 - The toReversed() method transposes the elements of the calling array object in reverse order and returns a new array.
🌐
ReqBin
reqbin.com › code › javascript › rgwrzonz › javascript-reverse-array-example
How do I reverse an array in JavaScript?
December 16, 2022 - The array.reverse() method in JavaScript is used to reverse an array in place. The reverse() method reverses the array immediately; this means that the original elements of the array are swapped, and the original sequence is lost.
🌐
Reddit
reddit.com › r/learnjavascript › how do i reverse an array?
r/learnjavascript on Reddit: How do I reverse an array?
February 10, 2022 -

I'm trying to print this array in reverse order but I don't really know much about JavaScript and I thought I found a solution but it only works with numbers and I don't really know what to do. Any help I'm thankful for

Heres my code

var array = ["Item1, Item2, Item3"];

for(var a = array.length-1; a >= 0; a--) {
document.write(array[a]);
}

🌐
GeeksforGeeks
geeksforgeeks.org › dsa › program-to-reverse-an-array
Array Reverse - GeeksforGeeks
Auxiliary Space: O(1), no extra space is required, therefore we are reversing the array in-place. The idea is to use inbuilt reverse methods available across different languages.
Published   August 8, 2025
🌐
Latenode
community.latenode.com › other questions › javascript
How can I reverse an array in JavaScript without modifying the original array? - JavaScript - Latenode Official Community
November 6, 2024 - The method Array.prototype.reverse changes the original array by reversing its elements. I’m looking for an easy way to reverse an array while ensuring that the original array remains unchanged. Is there a straightforwar…
🌐
freeCodeCamp
freecodecamp.org › news › how-to-reverse-an-array-in-javascript-js-reverse-function
How to Reverse an Array in JavaScript – JS .reverse() Function
November 29, 2022 - By Dillion Megida In this article, I'll show you two ways to reverse arrays in JavaScript. The reverse method of arrays reverses an array by making the last item the first, and making the first item the last. The other items in between also ...
🌐
CoreUI
coreui.io › answers › how-to-reverse-an-array-in-javascript
How to reverse an array in JavaScript · CoreUI
September 20, 2025 - Use the reverse() method to flip the order of elements in a JavaScript array from last to first position.
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › reverse-an-array-in-javascript
Reverse an Array in JavaScript - GeeksforGeeks
JavaScript provides a built-in array method called reverse() that reverses the elements of the array in place.
Published   July 23, 2025
🌐
Medium
josephcardillo.medium.com › how-to-reverse-arrays-in-javascript-without-using-reverse-ae995904efbe
How to Reverse Arrays in JavaScript Without Using .reverse() | by Joe Cardillo | Medium
January 31, 2022 - The first, reverseArray, takes an array as an argument and produces a new array that has the same elements in the inverse order. The second, reverseArrayInPlace, does what the reverse method does: it modifies the array given as argument in order ...
🌐
Quora
quora.com › What-is-the-most-efficient-way-to-reverse-a-Javascript-array
What is the most efficient way to reverse a Javascript array? - Quora
Answer (1 of 15): 1. Defining the need to reverse will produce much better answers and solutions. 2. Efficient to whom or what and does it matter to whom or what and why? 3. Avoid sorting large arrays in Javascript running in a web browser. 4. Reverse sorting choices: A dozen ways and counting...
🌐
W3Schools
w3schools.com › js › js_array_methods.asp
JavaScript Array Methods
ES2019 added the Array flatMap() method to JavaScript.
🌐
Flexiple
flexiple.com › javascript › reverse-javascript-array
JavaScript: Reverse an array using different methods - Flexiple
March 11, 2022 - As the name suggests, this method reverses the order of array elements by modifying the existing array.