title: Reverse a String in JS
body: <p>I'm going through tutorials to code (I'm fairly new at this), and this particular exercise is racking my brain. Here are the parameters:</p>
  
  <p><em>Reverse the provided string. 
  You may need to turn the string into an array before you can reverse it. Your result must be a string.</em></p>
  
  <p>and here is the code I'm given to start with:</p>
  
  <pre><code>function reverseString(str) {
    return str;
  }
  reverseString('hello');
  
  
  expect(reverseString('hello')).to.be.a('String');
  
  expect(reverseString('hello')).to.equal('olleh');expected 'hello' to equal 'olleh'
  
  expect(reverseString('Howdy')).to.equal('ydwoH');expected 'Howdy' to equal 'ydwoH'
  
  expect(reverseString('Greetings from Earth')).to.equal('htraE morf sgniteerG');expected 'Greetings from Earth' to equal 'htraE morf sgniteerG'
  </code></pre>
  
  <p>Any suggestions out there on how to accomplish this?</p>
  
  <p>** Edit: I figured out what my issue was. The particular IDE of the tutorial site made it confusing. Apparently I was meant to hit one of the objectives listed (not all of them in one script as I previously thought). This was accomplished by <code>return str.split( '' ).reverse( ).join( '' );</code>. The parameters for the split and join methods were a little confusing at first as well. Most online tutorials of this method use splitting words as an example, so I didn't realize going from </p>
  
  <p><code>" "</code> to <code>""</code></p>
  
  <p>would change the process from reversing words to reversing letters.</p>