Pregunta de entrevista de Capgemini

Write a function in Javascript to reverse a string.