Capgemini Interview Question

Write a function in Javascript to reverse a string.