JavaScript: How can I insert a string at a specific index
<p>How can I insert a string at a specific index of another string? </p>

<pre><code> var txt1 = "foo baz"
</code></pre>

<p>Suppose I want to insert "bar " after the "foo" how can I achieve that? I thought of substring, but there must be a simpler more straight forward way?</p>
