Not to worry, I've managed to figure out how to reverse a string (a one-word string at least).
> function reverse(s){
> return s.split("").reverse().join(""); }
Is there a way to reverse a string in this manner:
"Dady come home" -> "ydaD emoc emoh"
or for example:
('double spaced words') === 'elbuod decaps sdrow');
I've spent a few hours today trying to solve this because I'm learning, any tips would be greatly appreciated! Thank you!
Kindly refrain from providing a full reply with code. :) I'm just looking for some helpful hints.