1
00:00:02,170 --> 00:00:05,870
Now that's it for this course section.

2
00:00:05,870 --> 00:00:08,730
We talked about variables and values, arrays,

3
00:00:08,730 --> 00:00:11,060
and objects and functions.

4
00:00:11,060 --> 00:00:14,510
Now you might recall that at the beginning of this module,

5
00:00:14,510 --> 00:00:19,150
I also mentioned working with the Dom and I made that super

6
00:00:19,150 --> 00:00:23,040
funny joke about Vin Diesel and that I mentioned control

7
00:00:23,040 --> 00:00:24,460
structures.

8
00:00:24,460 --> 00:00:28,540
These are topics we'll explore in the next course sections,

9
00:00:28,540 --> 00:00:31,960
because now we did learn about these key fundamentals,

10
00:00:31,960 --> 00:00:36,660
which prepare us for these slightly more advanced topics,

11
00:00:36,660 --> 00:00:39,400
which working with the Dom and working with control

12
00:00:39,400 --> 00:00:41,550
structures are.

13
00:00:41,550 --> 00:00:42,800
For the moment,

14
00:00:42,800 --> 00:00:45,830
you should know what variables are and

15
00:00:45,830 --> 00:00:46,970
that we have values

16
00:00:46,970 --> 00:00:50,260
like numbers or, strings or, a arrays or, objects,

17
00:00:50,260 --> 00:00:53,080
which we can store in variables.

18
00:00:53,080 --> 00:00:54,900
That we do use variables

19
00:00:54,900 --> 00:00:57,590
so that we can define them in one place and

20
00:00:57,590 --> 00:01:00,080
use them in another place.

21
00:01:00,080 --> 00:01:02,980
Possibly also change them and overwrite them and

22
00:01:02,980 --> 00:01:04,833
use them as often as we want.

23
00:01:05,720 --> 00:01:10,100
And you learned that we can use variables either for just

24
00:01:10,100 --> 00:01:13,200
outputting them with alert or console log or

25
00:01:13,200 --> 00:01:15,040
other ways which we'll learn about later.

26
00:01:15,040 --> 00:01:18,700
And that'd be a can of course also use them in calculations

27
00:01:18,700 --> 00:01:23,030
like here, a mathematical calculation, deriving a new value,

28
00:01:23,030 --> 00:01:26,750
which I store in a new variable in this case.

29
00:01:26,750 --> 00:01:29,940
And that actually all takes place in a function,

30
00:01:29,940 --> 00:01:31,530
which is not a must do,

31
00:01:31,530 --> 00:01:34,110
but which makes sense if you have to same operation,

32
00:01:34,110 --> 00:01:37,240
which you want to perform in different parts of your code,

33
00:01:37,240 --> 00:01:41,280
maybe also with different concrete values.

34
00:01:41,280 --> 00:01:45,220
That's possible because functions take parameters so that

35
00:01:45,220 --> 00:01:48,720
you can call them with different values

36
00:01:48,720 --> 00:01:51,540
and they can return values so that the,

37
00:01:51,540 --> 00:01:54,863
you can also store the result of calling a function in

38
00:01:54,863 --> 00:01:59,223
another variable, or use it in another part of your code.

39
00:02:00,200 --> 00:02:04,240
We also learned that we can add functions to objects and we

40
00:02:04,240 --> 00:02:06,040
then call them methods,

41
00:02:06,040 --> 00:02:10,380
just as we call a variables inside of object, properties.

42
00:02:10,380 --> 00:02:13,840
And that that's something which we will all to do later,

43
00:02:13,840 --> 00:02:17,010
but that for the moment that's mostly a feature which we

44
00:02:17,010 --> 00:02:20,913
will use indirectly, like here with console log.

45
00:02:22,230 --> 00:02:26,600
Certainly revisit certain lectures of this course section,

46
00:02:26,600 --> 00:02:30,750
if some of these topics are not entirely clear yet,

47
00:02:30,750 --> 00:02:33,220
maybe have a look at that exercise again

48
00:02:33,220 --> 00:02:36,890
and try redoing it if something's not clear yet,

49
00:02:36,890 --> 00:02:40,180
because these are important fundamentals,

50
00:02:40,180 --> 00:02:43,370
which we'll now use to build up on in the next course

51
00:02:43,370 --> 00:02:44,203
sections.

