Having a little trouble understanding what this does. If I have a string,
Using "Mcdonalds" as an example, I do:
"McDonalds".split("").reverse().join();
What exactly am I doing?
Am I splitting each character (M c D o n a l d s), then reversing it (s d l a n o D c M) then joining to get (sdlanoDcM)? (Trying to see if I understand this right)