How do I format the highlighted line in currency:
<script> //write the java script
var limit = parseInt(prompt("How many days?", "")); //define first variable
var total = .005; //define second variable
for(var days=1; days<=limit; days++) //define the count start
{
total = total+total; //formula for the running total
document.write("<tr>"); //output the table row
document.write("<td>"+days+"</td>"); //output first variable
document.write("<td>"+total+"</td>"); //output the second variable**************
document.write("</tr>"); //end table row
}
</script>
</table>