Pergunta de entrevista da empresa PureCode Software

Implement a function to reverse a string in JavaScript.