PureCode Software Interview Question

Implement a function to reverse a string in JavaScript.