// I figured this one by myself! Although I had to look up how to omit the last// character in a string. functionreverse(str){if(str.length<=1) return str;returnstr.charAt(str.length-1) +reverse(str.slice(0,-1));}/** Initially I though that it'd be having to use a helper method, but using a familiar version of recursion I was able to notice that you can reverse using a `charAt` and `slice` to return the available characters*/