reverse string in the javascript

technical talkiess
0

reverse string in the javascript

 <script>

function reverseString(str) {

var str = str.split("");

    var str = str.reverse(str);

    var str = str.join("");

    return str;

}

document.write(reverseString("hello"));

</script>

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)