Hey, hey, and welcome to seeing objects, as well as object oriented programming with JavaScript,
one of the common questions that I often get from students is they want to learn more about JavaScript
and JavaScript object oriented programming.
Objects in JavaScript are everywhere.
If you understand objects, you're going to understand JavaScript.
Walk you through how you can use objects in a number of different ways and then also use object oriented
programming in order to create content a whole lot more efficiently.
And as you can see here, this is the final project that we're going to be working on, and this is
all object oriented items added into the cart.
It gets visually represented here.
And then when you click it, you see that we've got these totals that are running totals.
We can also see all of the content within the items array.
So these are all the different items and each one of these items.
So we've got a cost, a name.
We're calculating shipping.
We've got with tax, for instance.
We want to find out from item number to get the cost with tax.
We've got a method within the object construction that can accomplish that and we can change this around.
So if we want to get tax on another item, you can see the different tax values, a cart, that's another
object.
And within the cart itself, a bunch of methods that are really useful that we can output content outputting
the content that's currently contained within the list.
And this is how we're outputting milk, tuscola bread a price.
So it's for quantity of two.
So are multiple bread.
Four times two is eight.
We've also got a method here for subtotal and we're utilizing all of this in order to get a final total
presented to the user.
If you have any questions or comments, I'm always happy to help within the Q&A section of the course,
please let me know.
I've also included a downloadable PDF that's going to have all of the content as well.
Source code is also included to get you started quickly.
Let's jump right in and start JavaScript objects and object oriented programming.