From the course: Learning the JavaScript Language
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Using objects for data modeling - JavaScript Tutorial
From the course: Learning the JavaScript Language
Using objects for data modeling
- [Instructor] In this video we'll look at some objects that are a little more substantial to get a sense of how we can use them to do data modeling. I'm here in the code editor looking at a couple of objects. These show you some ways to model data by which I mean representing knowledge as code. These are still very simple and we're still talking at a somewhat abstract level because the requirements of any given program are going to be up to you in your own work. But these will at least start to give you an idea. I've used these objects to represent two animals, a bird and a bear. We'll look at the bird first. What pieces of data I choose to include are totally up to me and because I don't yet have an actual program to write I just picked a few for fun. So I have a genus, a species, a commonName, this bird is a raven. It's callType is squawky. It has an associated quote, a maximum number of offspring, and whether it's…
Contents
-
-
-
-
-
Objects4m 13s
-
(Locked)
Using objects for data modeling2m 33s
-
(Locked)
Manipulating objects4m 24s
-
(Locked)
Jargon: References4m 39s
-
(Locked)
Arrays5m 35s
-
(Locked)
Manipulating arrays7m 36s
-
(Locked)
Readability: Whitespace3m 24s
-
(Locked)
Readability: Comments4m 57s
-
(Locked)
Regular expressions6m 9s
-
-
-
-
-
-