Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
makin' stuff backwards
Whats reverse method used for?
anki deck? i guessed you are from #100Devs
I like your solution.
This comment is hidden because it contains spoiler information about the solution
Exactly what I did too :')
Having this problem memorized on my anki deck really made a difference.
This is my solution also, was good to be reminded of the arr.reverse function, but seems like there should be an easier way to reverse a str.
Good job! Happy coding.
Legit this is why programming is an art. Now I learned like three things compared to my solution.
This comment is hidden because it contains spoiler information about the solution
very clean, no nonsense solution!
There is a couple of reasons for that, and some of them might be:
This comment is hidden because it contains spoiler information about the solution
There are so many possibilities but i still came down to such a solution as the best way to do it. Well done.
Also, this solution is at least 10 years old, maybe arrow function didn't exist back there. ES6 was released in 2015.
1- .split('') method splits a string into an array of strings
exemple : "hello".split('') ==> Output : ['h','e','l','l','o']
2- .reverse() method to reverse order of an array
===> Output : ['o','l','l','e','h']
3- .join('') is to combine elements of an array into one single string and return it
===> Output : 'olleh'
Loading more items...