How to convert Char into Strings in JavaScript?
<p>I'm using the <code>split(' ')</code> method in JavaScript to spilt the word for whitespaces.
For example:</p>

<p>I have text like: </p>

<pre><code>var str ="Hello this is testing"
</code></pre>

<p>After I call </p>

<pre><code>str.split(' ')
</code></pre>

<p>Now I will get <strong>Hello this is tesing</strong> as output and when I do this</p>

<pre><code>str[2]
</code></pre>

<p>I get "l", but I want to get "<strong>testing</strong>" word (as per array index). How to convert str to array, so that if I put </p>

<pre><code>str[2] //It should be testing.
</code></pre>
