HyperTV interview question

Starting from a string, how to get the reverse one in Javascript?