script.js
var i, total=0;
for (i=1;i<=3000;i++){
total += Math.sqrt(2 * Math.pow(i, 2));;
document.write("Total: " + total);
document.write("<br>");
}
*In Most Cases, CSS First, JS Second
More Info:
var i, total=0;
for (i=1;i<=3000;i++){
total += Math.sqrt(2 * Math.pow(i, 2));;
document.write("Total: " + total);
document.write("<br>");
}
No comments :
Post a Comment