Take the tour ×  I need to create an html table with data from
this spreadsheet  using a nested javascript loop. It puzzles me
because when I think of what a loop does creating a table seems
weird.  I really have no idea how to start this. I also need to
detect clicking on total loan costs as well as create an event-
initiated function that shows the interest charged on the loan.
Thank You in advance!           {for (var i=0,i<21,i++)
var prin=10000;    //var months=(6,12,18,24);   //period in
years   var period=(.5,1,1.5,2);  var percent=(4,5,6);  //rate
in percent  var rate=(.04,.05,.06); share|improve this question
add comment  1 Answer  Your javascript is not valid! Try hitting
"F12" in your browser window to open developer tools. If you can
find the javascript console, it'll display your javascript
errors with the offending line numbers (if you can't find the
console, google for "javascript console firefox" substituting
"firefox" for your browser's name).  Why do you have the opening
"{" in front of