function reverseString(str) {
str = str.split('').reverse().join(''); return str;
}
reverseString("hello", "");

Leave a Reply