---
title: "Discussion on \"Reverse a string\" | Hashnode"
description: "Discussion on \"Reverse a string\". Using a function to reverse a given string. \nExpected results:\nreverse('apple') // 'elppa\nreverse('hello') // 'olleh'\nreverse('Learning To Code!')  //'!edoC oT gninraeL'\n\nSolution 1 - Built in functions\n\nConvert string into array using split()\nRevers..."
url: "https://hashnode.com/posts/reverse-a-string/6140f3084e51f6028be020e4"
---

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

Discussion

# [Reverse a string](https://delvoid.hashnode.dev/reverse-a-string?utm_source=hashnode&utm_medium=feed)

Using a function to reverse a given string. Expected results: reverse('apple') // 'elppa reverse('hello') // 'olleh' reverse('Learning To Code!') //'!edoC oT gninraeL' Solution 1 - Built in functions Convert string into array using split() Revers...

Sep 14, 2021 · 2 min read · delvoid.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#learning](https://hashnode.com/tag/learning)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Dave Hough](https://hashnode.com/@Delvoid)

@Delvoid · United Kingdom

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
