Course catalog: one course
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.
JSON
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.