1
00:00:00,330 --> 00:00:06,590
Hey, hey, and welcome to seeing objects, as well as object oriented programming with JavaScript,

2
00:00:06,600 --> 00:00:12,000
one of the common questions that I often get from students is they want to learn more about JavaScript

3
00:00:12,090 --> 00:00:14,520
and JavaScript object oriented programming.

4
00:00:14,550 --> 00:00:16,850
Objects in JavaScript are everywhere.

5
00:00:16,950 --> 00:00:19,910
If you understand objects, you're going to understand JavaScript.

6
00:00:19,920 --> 00:00:25,740
Walk you through how you can use objects in a number of different ways and then also use object oriented

7
00:00:25,740 --> 00:00:30,090
programming in order to create content a whole lot more efficiently.

8
00:00:30,090 --> 00:00:34,350
And as you can see here, this is the final project that we're going to be working on, and this is

9
00:00:34,350 --> 00:00:37,590
all object oriented items added into the cart.

10
00:00:37,590 --> 00:00:39,270
It gets visually represented here.

11
00:00:39,420 --> 00:00:43,740
And then when you click it, you see that we've got these totals that are running totals.

12
00:00:44,010 --> 00:00:47,830
We can also see all of the content within the items array.

13
00:00:47,850 --> 00:00:50,880
So these are all the different items and each one of these items.

14
00:00:50,890 --> 00:00:52,440
So we've got a cost, a name.

15
00:00:52,620 --> 00:00:53,970
We're calculating shipping.

16
00:00:54,090 --> 00:00:56,250
We've got with tax, for instance.

17
00:00:56,250 --> 00:01:01,950
We want to find out from item number to get the cost with tax.

18
00:01:02,250 --> 00:01:08,700
We've got a method within the object construction that can accomplish that and we can change this around.

19
00:01:08,700 --> 00:01:15,210
So if we want to get tax on another item, you can see the different tax values, a cart, that's another

20
00:01:15,210 --> 00:01:15,780
object.

21
00:01:15,870 --> 00:01:21,930
And within the cart itself, a bunch of methods that are really useful that we can output content outputting

22
00:01:21,930 --> 00:01:24,120
the content that's currently contained within the list.

23
00:01:24,270 --> 00:01:27,990
And this is how we're outputting milk, tuscola bread a price.

24
00:01:28,200 --> 00:01:30,630
So it's for quantity of two.

25
00:01:30,780 --> 00:01:32,160
So are multiple bread.

26
00:01:32,160 --> 00:01:34,350
Four times two is eight.

27
00:01:34,570 --> 00:01:40,470
We've also got a method here for subtotal and we're utilizing all of this in order to get a final total

28
00:01:40,470 --> 00:01:41,910
presented to the user.

29
00:01:41,920 --> 00:01:47,370
If you have any questions or comments, I'm always happy to help within the Q&amp;A section of the course,

30
00:01:47,370 --> 00:01:48,330
please let me know.

31
00:01:48,480 --> 00:01:53,950
I've also included a downloadable PDF that's going to have all of the content as well.

32
00:01:53,970 --> 00:01:58,080
Source code is also included to get you started quickly.

33
00:01:58,110 --> 00:02:02,490
Let's jump right in and start JavaScript objects and object oriented programming.
