javascript; What is the difference between two pieces of codes below : <p>I am trying to understand how are these two pieces of code different.</p>

<pre><code>var bill=10.25+3.99+7.15;
var tip = bill*0.15;
var total=bill+tip;
total = total.toFixed(2);
console.log("$"+total);
</code></pre>

<p>And</p>

<pre><code>var bill=10.25+3.99+7.15;
var tip = bill*0.15;
var total=bill+tip;
console.log("$"+total.toFixed(2));
</code></pre>
