title: split string using parameter error?
body: <p>Using just the parameter fails but using a variable works, what is the difference?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function Person(name) {
          //Throws error - name.reverse is not a function
          name.split("");
          name.reverse();
          name.join("");
  
          // Works
          var splitString = name.split("");
          var reverseString = splitString.reverse();
          var joinString = reverseString.join("");
          return joinString;
      }
      document.write(Person("Joe"));
  &lt;/script&gt;
  </code></pre>