Instructions:
Complete the solution so that it reverses the string passed into it.
'world' => 'dlrow'
'word' => 'drow'
Thoughts:
I converted the string into an array to utilize the reverse() function for reversing its contents. Then, I rejoined the array back into a string.
This is a CodeWars Challenge of 8kyu Rank (https://www.codewars.com/kata/5168bb5dfe9a00b126000018)
Top comments (0)