comma in console.log (JavaScript)
<p>This might be an stupid question but I don't get it. I really hope I don't get down votes</p>

<p>When I try and run this code</p>

<pre><code>var mydate= new Date (19995,10,5);
console.log("foo was born on the day :" mydate.getDay());
</code></pre>

<p>in firebug (Mozeilla) I get an error( SyntaxError: missing ) after argument list), though when I add the comma between the string and the variable like that :</p>

<pre><code>var mydate= new Date (19995,10,5);
console.log("foo was born on the day :", mydate.getDay()); 
</code></pre>

<p>it works. why do I need to add the comma ?</p>