Question d’entretien chez Capgemini

Write a function in Javascript to reverse a string.