Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 252 Bytes

reverse-string.md

File metadata and controls

13 lines (11 loc) · 252 Bytes
title description author tags
Reverse String
Reverses the characters in a string.
technoph1le
string,reverse
const reverseString = (str) => str.split('').reverse().join('');

// Usage:
reverseString('hello'); // Returns: 'olleh'