JavaScript Code/Exercises
Lesson 01
- Lab 1: Murach Exercises - If and switch statements
- View the JavaScript code in invoice_total.js and test out the program at invoice_total.html. Change the JavaScript code to use if statements and a switch statement per Exercise 8-1.
- Lab 2: Murach Exercises - Loops
- View the JavaScript code in using_loops.js and test out the program at invoice_total.html. Change the JavaScript code to use if statements and a switch statement per Exercise 8-2.
- Lab 3: Murach Exercises - Objects
- View the HTML code in invoice.txt and the JavaScript code in invoice.js and invoice_library.js. What is the purpose of each JavaScript file? Trace the code! Note that the code does use some jQuery syntax to find form elements by their ID. Test out the program at invoice_total.html. Modify the JavaScript code per Exercise 11-2.