title: Inserting string at position x of another string
body: <p>I have two variables and need to insert string <code>b</code> into string <code>a</code> at the point represented by <code>position</code>. The result I'm looking for is "I want an apple". How can I do this with JavaScript?</p>
  
  <pre><code>var a = 'I want apple';
  var b = ' an';
  var position = 6;
  </code></pre>