Lab 06 and Lab 07 are due at the end of the lab today.
Checkpoints are
Ask Questions! Answer Questions! Collaborate with Peers!
Students who complete all required material will obtain 3/4.
Students who complete bonus material
You are expected to collaborate with peers by asking and answering questions.
Get more practice using JavaScript to interact with HTML.
Read and write JavaScript code with variables, if-statements, loops, and objects.
Go to the JSFiddle site:
Explore the HTML, CSS, and JavaScript (JS) sections.
Notice the Run button in the top-left corner.
We will be
Notice the
Read through the array of course objects (subject, num, title).
Manually fill in the HTML table (by editing the HTML) with the course object data (i.e., add the appropriate course number and title).
Re-run the JSFiddle.
We will be
In the HTML code, Part 2, there is a button named “Add
course” that calls a function called
The button adds a course to the
In the JS code, Part 2, there is a function called
The variable named
The function called
The button named “Add course” should now add a course to the HTML table.
Write a single feature that could be implemented in your project that uses a function similar to “addCourse()”.
Draw a low-fidelity wireframe that implements the single feature in your project.
Get more practice using JavaScript to interact with HTML.
Read and write JavaScript code with variables, if-statements, loops, and objects.
We will be
In the HTML code, Part 3, there is a button named “Add
course” that calls a function called
The button adds a course to the
In the JS code, Part 3, there is a function called
The variable named
You will need to get the values from the input fields to populate
the variable named
We will be
In the HTML code, Part 4, there are buttons named “List classes”, “List 400-level classes”, and “List Math classes” that call functions.
In the JS code, Part 4, there is a function called
Modify the
Hint: You will need to use conditional statements in your loop to determine which classes to add to the string.
Upload Lab 06 and Lab 07 to UVic Student Web Hosting.
Lab 06 and Lab 07 are Finished!
Upload files to Brightspace.
Add link to text field in Brightspace submission.