---
title: "Discussion on \"How to reverse a string using JavaScript?\" | Hashnode"
description: "Discussion on \"How to reverse a string using JavaScript?\". Some different ways to reverse a string\n\nArray method\n const string = \"Let's reverse this\";\n return string.split(\"\").reverse().join(\"\");\n\n\nFor-loop\n function reverse(str) {\n     let final = \"\";\n     for (let i = str.length - 1; i >= 0; i--) {\n       ..."
url: "https://hashnode.com/posts/how-to-reverse-a-string-using-javascript/5fb7718b08ea5d7167d70f45"
---

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

Discussion

# [How to reverse a string using JavaScript?](https://murilobd.hashnode.dev/how-to-reverse-a-string-using-javascript?utm_source=hashnode&utm_medium=feed)

Some different ways to reverse a string Array method const string = "Let's reverse this"; return string.split("").reverse().join(""); For-loop function reverse(str) { let final = ""; for (let i = str.length - 1; i >= 0; i--) { ...

Nov 19, 2020 · 1 min read · murilobd.hashnode.dev  
Updated Nov 27, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#2articles1week-1](https://hashnode.com/tag/2articles1week-1)

## Written by

[Murilo Boareto Delefrate](https://hashnode.com/@murilobd)

@murilobd · Lyon, France

  
[View profile](https://hashnode.com/@murilobd)

Software Engineer - Javascrtipt, PHP

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
