var reverseString = function(arr) {
if (arr.length === 1) {
return arr;
}
const temp = arr.shift();
reverseString(arr);
arr.push(temp);
return arr;
};
var reverseString = function(arr) {
if (arr.length === 1) {
return arr;
}
const temp = arr.shift();
reverseString(arr);
arr.push(temp);
return arr;
};