Shopping list
Make a shopping list for a dinner party.
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)
Make a shopping list for a dinner party.
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)
Make list of links to good stuff.
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)
Who won the dog race?
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)
Records are stored in JS objects. You can make HTML to show what is in an object.
Try the course catalog page. It starts off empty:
When you click the button, you see a course list:
h2.
CRUD web apps deal with structured data, like rows in database tables. We'll be using JS objects for that.
An object is a collection of data and functions. You've already been making objects, without knowing it. You know those namespacing things?
<script>
"use strict";
var CourseScore = CourseScore || {};
CourseScore
is a JS object.
Suppose we want a catalog of university courses. Let's start with one course for now. Here's how you could store information about it:
bc.