function solution_1(str) {
  // const arr = str.split('') // Convert string to array
  // arr.reverse() // Apply reverse method on array, to reverse the array
  // return arr.join('') // Apply join method to join the array as string and return it as reverse string
  return str.split('').reverse().join('')
}
/**
 * Solution #1, use built in methods
 */
Solution #1, use built in methods
Solution #1 use built in methods
function solution_1(str) {
  return str.split('').reverse().join('')
}
function solution_1 ( str ) { return str . split ( '' ) . reverse ( ) . join ( '' ) }
Solution #1, use built in methods
Solution #1 use built in methods
// const arr = str.split('') // Convert string to array // arr.reverse() // Apply reverse method on array, to reverse the array // return arr.join('') // Apply join method to join the array as string and return it as reverse string