title: JavaScript Array map function won't change elements in a String?
body: <p>So I've tried to use the map() method as follows:</p>
  
  <pre><code>words = ["One", "Two"];
  words = words.map(function(currentValue)
      {
          alert(currentValue[0]);//Output: O Then: T
          currentValue[0] = "A";
          alert(currentValue[0]);//Output: O Then: T
          return currentValue;
      });
  </code></pre>
  
  <p>Why is it that currentValue[0] is not getting assigned the value "A"?!?</p>