DEV Community

Madalina Pastiu
Madalina Pastiu

Posted on

Reversed Strings

Instructions:
Complete the solution so that it reverses the string passed into it.

'world' => 'dlrow'
'word' => 'drow'

Image description
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.

Test

This is a CodeWars Challenge of 8kyu Rank (https://www.codewars.com/kata/5168bb5dfe9a00b126000018)

Top comments (0)

👋 Kindness is contagious

Please show some love ❤️ or share a kind word in the comments if you found this useful!

Got it!