Are there other ways to print out debugging messages without line-breaking the content in javascript?
<p>I'm wondering if there are many other ways to print out debugging messages without line-breaking the content:</p>

<pre><code>  (function(){
          var r="";
          console.log("start: ");
        for (var i = 0; i &lt; 10; i++) {

                        console.log(i + " ");; //this will line-break the content
        }

        console.log("finish");


})();
</code></pre>

<hr>

<p><strong>This one will not break the content:**</strong> However I've to add all the result in one variable and then at the end print out the whole content, wondering if there are other ways to print out directly inside the LOOP without line-breaking the content...</p>

<p>THANKS</p>

<pre><code>  (function(){
          var r="";
          console.log("start: ");
        for (var i = 0; i &lt; 10; i++) {

                       r+= (i + " "); //this will NOT break the content
        }
        console.log(r);
        console.log("finish");


})();
</code></pre>
