How to turn a string into an array under a specific delimiter
<p>I have this string in javascript:</p>

<pre><code>var st="ab,cd,ef,gh";
</code></pre>

<p>how can make this string as an array with a length equal to 4 example:</p>

<pre><code>st should be like this : [ab cd ef gh]
</code></pre>
