getting comma before first element in an array in jquery
<p>I am inserting some data into an array but I am getting </p>

<pre><code>,9,My firstname,My lastname,myemail@example.com,123456789
</code></pre>

<p>out in my console. How can I remove comma from first element i.e. 9? here is my code</p>

<pre><code>var data = new Array();

                $(row_el.children("td")).each(function(i) {
                    var td = $(this);
                    //var data = td.html();
                    var td_el = td.attr('class');
                    //arr[i] = data;

                    if(!td.hasClass("element")) {
                        data[i] = td.html();        
                        console.log(i + ": " + data);
                    }

                });
</code></pre>

<p>I want output like this </p>

<pre><code>9,My firstname,My lastname,myemail@example.com,123456789
</code></pre>

<p>then I will pass this array to a function and loop through this array.</p>
