Transcript from the "Three Pillars of JS Exercise" Lesson
[00:00:17] We're gonna be practicing a little bit about types and coercion, a bit about scope and closures, and a bit about the this keyword and prototypes, specifically using that class syntax that we talked about at the end. So let me orient you to this exercise and then we'll give you plenty of time to work on that.
[00:00:52] We're going to have the addFavoriteBook and printFavoriteBooks, you might remember those from the previous exercise. Well, now we're gonna move them to be methods inside of our bookshelf class. And then we're gonna be calling a function that pretends to make an ajax call. That's a way of making a request from the webpage back to the server, and getting some information.
[00:01:14] We're not going to really make an ajax call. I've provided you a fake function that pretends to do ajax. But it's going to give you a chance to practice remembering something over time which is what we're going to do with closure. So you're going to get a chance to practice with all of three pillars.
[00:01:29] I've laid out very specific instructions. I want to make sure you go through them in order and make sure you read very carefully. You gonna try out this exercise, and bit by bit make sure you're executing this code. Don't just write a bunch of code, and then try to run it, and you have a whole bunch of errors.
[00:02:18] Again, feeling okay about how we deal with types and coercion, feeling okay about the scope and the closure system and feeling okay with the this keyword and the class system.