1
00:00:00,940 --> 00:00:04,470
All right, in the last module we built a

2
00:00:04,470 --> 00:00:07,070
module, basically. We have our sessionRepo

3
00:00:07,070 --> 00:00:09,950
module ready to go, and in this module,

4
00:00:09,950 --> 00:00:13,670
we're going to start using those modules

5
00:00:13,670 --> 00:00:15,880
just to keep saying the word module over

6
00:00:15,880 --> 00:00:18,340
and over again as much as we can. So

7
00:00:18,340 --> 00:00:19,780
that's what we're going to do. We're going

8
00:00:19,780 --> 00:00:22,380
to start by looking at the new keyword

9
00:00:22,380 --> 00:00:26,360
that we use to import items from a module

10
00:00:26,360 --> 00:00:27,990
into our code, and that's going to be the

11
00:00:27,990 --> 00:00:30,780
import keyword. And there's some

12
00:00:30,780 --> 00:00:32,390
complexity to it, and the first thing

13
00:00:32,390 --> 00:00:33,830
we're going to do is we're going to talk

14
00:00:33,830 --> 00:00:36,350
about actually being able to use modules.

15
00:00:36,350 --> 00:00:37,710
There's some things we need to do in our

16
00:00:37,710 --> 00:00:40,120
script tag that are going to allow that to

17
00:00:40,120 --> 00:00:42,800
happen. We'll also look at compatibility,

18
00:00:42,800 --> 00:00:46,050
like what browsers allow you to do this

19
00:00:46,050 --> 00:00:49,630
and which ones don't. Then we're going to

20
00:00:49,630 --> 00:00:52,130
talk about default imports. In the last

21
00:00:52,130 --> 00:00:53,735
module, we talked about default exports,

22
00:00:53,735 --> 00:00:55,890
now we're going to how do we import those

23
00:00:55,890 --> 00:00:57,890
items into our code and we're going to

24
00:00:57,890 --> 00:01:00,910
make our code work again by having a

25
00:01:00,910 --> 00:01:04,450
default import out of our session

26
00:01:04,450 --> 00:01:06,540
repository. Then we're going to work with

27
00:01:06,540 --> 00:01:08,870
named imports. So, we were doing named

28
00:01:08,870 --> 00:01:10,880
exports, now we're going to go import

29
00:01:10,880 --> 00:01:12,860
those couple other things that we were

30
00:01:12,860 --> 00:01:15,180
getting out of our session

31
00:01:15,180 --> 00:01:18,740
repository. We'll pull those things out.

32
00:01:18,740 --> 00:01:21,285
Okay, now that we've got this laid out,

33
00:01:21,285 --> 00:01:25,000
let's go look at how to turn this thing on.

