Pregunta de entrevista de HyperTV

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