This course has been updated! We now recommend you take the Deep JavaScript Foundations, v3 course.

Check out a free preview of the full Deep JavaScript Foundations course:
The "Challenge 7: Prototype" Lesson is part of the full, Deep JavaScript Foundations course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, students convert a module factory function to prototype-style constructor function.

Get Unlimited Access Now

Transcript from the "Challenge 7: Prototype" Lesson

[00:00:00]
>> Kyle Simpson: Here's what you're doing in excercise seven. That project thing that we just created, remember that we made that into a factory function that makes instances and modules? You're gonna convert project into a prototype oriented code. Where the methods on it are on the prototype chain of project constructor prototype object.

[00:00:25] And when you call the capital P project function, now you're gonna call it with new. So you're gonna be constructing instances of this project class basically.