so I'm taking an online JavaScript class at school, but unfortunately, I don't find our textbook very useful, and have been struggling with a lot of stuff in there, largely due to the fact that much guesswork is expected at the end of the chapters on the assignments (Course Technology's )New Perspectives on JavaScript. I don't find guessing to be a very effective learning method, so without further ado, here's the situation.
The assignment involves basic concepts around using arrays, and the for and while loops. We were supposed to create a database of contact information by inserting an external .js file, and using the arrays from that. Most of this is complete, but I'm stuck trying to figure out how to do the last part here, which is to try and return a numeric value in a side table from a for loop..
Here is the function part of it in question...
_______________________________
<title>The Lighthouse</title>
<link href="lhouse.css" rel="stylesheet" type="text/css" />
<script src = "list.js" type = "text/javascript"></script>
<script type = "text/javascript">
Yeah, unfortunately, the book isn't very clear on what to do :/ There's a step listed about declaring the total variable, but that's about all they're willing to tell you.
Bookmarks