(upbeat music)
- [Instructor] At the end of many of the chapters
in this course, I've added challenges to let you test
what you've learned so far.
Each of these challenges centers on what was covered
in the current chapter.
The challenge starts with a movie like this one
where I explain the challenge and what you need
to do to complete it.
And then afterwards, there's another movie
where I demonstrate how I solved the same challenge.
As you work your way through these challenges,
try to push yourself to finding a solution,
even if that means spending more than the suggested time
on it or even if it means having to go onto the internet
and searching MDN and other sources to find
the information you need.
These challenges are a learning tool for you
and you should treat them as such.
I can't see what you do with the challenges
and I did not create them to test your knowledge.
I want you to use them as an opportunity to test yourself
and push yourself to get the most out of this course
and what you've learned so far.
All right, here is your first challenge.
I want you to make a new type of object and add a series
of these objects in the project files.
The object type is called Book and you can decide
what properties and methods you want to include
in that object type as long as there's at least one of each.
Here you have some choices to make.
Do you just create several separate objects,
do you use an object constructor function,
or do you create a new Book class?
And what should be the naming convention
for each of these Book objects?
The idea here is to capture books in code.
So I want you to create a new Book object type
and add at least five different Book objects
in your projects.
That way you can go into the browser and test them
in the console and see that you have access
to all these books and you can see your books
turn into code in the browser.
I've assigned 10 minutes to this challenge
but feel free to take as much time as you need
to get it working the way you want.