Create a JavaScript function that accepts a string as input and returns the string in reverse order.
PLAINFORMAT
function reverseString(str) {
  // Split the string into an array of characters, reverse the array, and join it back into a string
  return str.split('').reverse().join('');
}