---
title: "Discussion on \"How to reverse an array in JavaScript\" | Hashnode"
description: "Discussion on \"How to reverse an array in JavaScript\". In this article we will learn how to reverse an array in JavaScript.\nThere's more than one way to do this:\n\nUsing reverse() method (Built In)\nUsing for loop\n\nThere are two ways, the first is easy because there's a built-in function in JavaScript that..."
url: "https://hashnode.com/posts/how-to-reverse-an-array-in-javascript/63903798c15e87444abbb268"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to reverse an array in JavaScript](https://mo-ibra.hashnode.dev/how-to-reverse-an-array-in-javascript?utm_source=hashnode&utm_medium=feed)

In this article we will learn how to reverse an array in JavaScript. There's more than one way to do this: Using reverse() method (Built In) Using for loop There are two ways, the first is easy because there's a built-in function in JavaScript that...

Dec 7, 2022 · 2 min read · mo-ibra.hashnode.dev  
Updated Jan 23, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Mohamed Ibrahim](https://hashnode.com/@mo-ibra)

@mo-ibra

  
[View profile](https://hashnode.com/@mo-ibra)

Software Engineer.

Software Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Kayode Oluwasegun](https://hashnode.com/@iamzt4ff)

[Dec 8, 2022](https://hashnode.com/posts/how-to-reverse-an-array-in-javascript/63903798c15e87444abbb268/comment/6392291a0771b6e5cf4a8bdb)

Nice write-up Mohamed!

[Mohamed Ibrahim](https://hashnode.com/@mo-ibra)

[Dec 8, 2022](https://hashnode.com/posts/how-to-reverse-an-array-in-javascript/63903798c15e87444abbb268/comment/6392291a0771b6e5cf4a8bdb#reply-63922a890771b6e5cf4a8c04)

Thank you
