Domanda di colloquio di HyperTV

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