Answers for "get a reverse string"

0

Reverse a string

function reverseString(str) {
    return str.split('').reverse().join('');
}

reverseString('string');    // "gnirts"
Posted by: Guest on June-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language