represent an HTML page containing a sample template table that that will run

Represent an html page containing a sample template

This preview shows page 3 - 4 out of 4 pages.

represent an HTML page containing a sample template table that that will run your code and shows whatyour output should look like. Do not modify this ±le.Additional Requirements, Hints, etc.You may not use jQuery or any other JavaScript library package in this project (or anywhere else in CS142). If you were developing a real website then you should de±nitely take advantage of existingJavaScript libraries, but for this class we want you to learn about the low-level foundationalJavaScript/DOM features.You may, however, use any JavaScript built-in functions. For example, you may ±nd the following built-in functions useful in this project:Methods of the Date class.parseInt, parseFloat, isNaNYou may ±nd some of the following DOM element properties useful in this project:cellsfirstChildnextSiblingrowstagNametextContentinnerHTML .
Image of page 3
The JavaScript function console.log is very useful for debugging. It takes a string argument, which it prints to the JavaScript log. You can display this log with "Tools -> JavaScript console" in the Chrome control menu. If you are having trouble ±guring out what is happening in your JavaScript, sprinkle console.log statements around your code so you can see which code is being executed. You may also ±nd the debugger statement useful in debugging. If the text " debugger; " is executed in a JavaScript program, it causes the program to drop into the JavaScript debugger. This is analogous to a breakpoint, except that your code can control when it triggers. If nothing seems to be happening in your JavaScript code, it's possible that your code contains an error that is causing it to be aborted. To ±nd out if this is happening, open the JavaScript console to see if there are any errors. The JavaScript console and Chrome DevTools will be your best friends for the remaining projects. We encourage you to spend some time this project learning how these tools work. Feel free to stop by any of the o²ce hours for a hands-on demonstration. Style Points (10 points) Your JavaScript must be clean (appropriate use of classes, no global variables other than constructor functions, etc.), readable, and JSHint warning-free. Deliverables Use the standard class submission mechanism (submit.html) to submit the entire project3 directory. Designed by Raymond Luong for CS142 at Stanford University Powered by Bootstrap () and Jekyll () – learn more (website.html)
Image of page 4

You've reached the end of your free preview.

Want to read all 4 pages?

  • Fall '14
  • JeannetteE.Myers

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture