Try this:
var str = 'hi how are you';
var reversedStr = str.split("").reverse().join("");
I tested this in my Chrome JavaScript console. works fine.
Note: If it was 'please tell me urgent' kind of question, you could have Googled 'javascript reverse string' and found the answer within 10 seconds.