function reverseString(string){ if(string==="") return ""; sliced = string.slice(0,-1); return string[string.length-1]+reverseString(sliced); }