Javascript Tutorial 17 - Convert a String to Array, then back to String

preview_player
Показать описание
Using the split() method and join() method to convert a string to an array, then back to a string. Also looks at the instanceof() function.

Рекомендации по теме
Комментарии
Автор

Thanks, was usefull, i need only the first part to reverse it

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

HeribertoSosa