1
00:00:02,100 --> 00:00:06,966
Now to conclude his introduction into JavaScript.

2
00:00:06,966 --> 00:00:10,340
I want to dive back into operations.

3
00:00:10,340 --> 00:00:13,200
We can perform with our values,

4
00:00:13,200 --> 00:00:16,350
like to subtraction we're doing here. And specifically,

5
00:00:16,350 --> 00:00:19,300
I also want to explore some operations.

6
00:00:19,300 --> 00:00:23,440
We can perform on strings as these will be operations,

7
00:00:23,440 --> 00:00:27,570
you will be doing frequently in Java script and asked is,

8
00:00:27,570 --> 00:00:30,510
will be operations. We will also need throughout,

9
00:00:30,510 --> 00:00:31,453
this course.

10
00:00:32,460 --> 00:00:37,460
Now let's come back to mathematical operations in general,

11
00:00:37,520 --> 00:00:38,353
and actually,

12
00:00:38,353 --> 00:00:42,270
therefore I'll add a brand new JavaScript file operations

13
00:00:42,270 --> 00:00:43,350
JS,

14
00:00:43,350 --> 00:00:47,259
just so did we have one file that contains a summary of all

15
00:00:47,259 --> 00:00:50,150
those operations basically.

16
00:00:50,150 --> 00:00:55,150
And now in index HTML I'll quickly import or link to this

17
00:00:55,530 --> 00:00:57,723
operations JS file.

18
00:01:00,430 --> 00:01:01,263
Now, I did,

19
00:01:01,263 --> 00:01:05,430
of course already talk about the general math operations you

20
00:01:05,430 --> 00:01:07,370
can perform.

21
00:01:07,370 --> 00:01:11,490
And that of course would be if I just console log a bunch of

22
00:01:11,490 --> 00:01:16,467
results that you can add values with the plus operator that

23
00:01:17,440 --> 00:01:21,113
you can subtract values with the minus operator.

24
00:01:22,200 --> 00:01:27,200
That you can also multiply values with this asterisk

25
00:01:27,210 --> 00:01:30,270
multiplication operator and that,

26
00:01:30,270 --> 00:01:35,270
you can divide values with this forward slash and of course,

27
00:01:36,550 --> 00:01:40,529
we could be storing all those results here in extra

28
00:01:40,529 --> 00:01:41,910
variables,

29
00:01:41,910 --> 00:01:46,040
or we just direct the output them with help of console log

30
00:01:46,040 --> 00:01:46,873
here.

31
00:01:46,873 --> 00:01:50,500
If we never need the results anywhere else in this code,

32
00:01:50,500 --> 00:01:53,116
as it's the case here since does this just there for demo

33
00:01:53,116 --> 00:01:57,623
purposes, that's why I'm not using any variables here.

34
00:01:59,840 --> 00:02:01,650
So if an our save that,

35
00:02:01,650 --> 00:02:05,530
we can see this output here in the console.

36
00:02:05,530 --> 00:02:10,509
And of course we see the expected results here, and please

37
00:02:10,509 --> 00:02:15,440
note that the last result here actually has a decimal place.

38
00:02:15,440 --> 00:02:20,330
It's two dot five, not just two or three.

39
00:02:20,330 --> 00:02:23,380
And that of course is probably what you expected,

40
00:02:23,380 --> 00:02:27,580
but it is worth pointing out that these two different kinds

41
00:02:27,580 --> 00:02:28,413
of numbers,

42
00:02:28,413 --> 00:02:33,140
which be see here numbers without decimal places and numbers

43
00:02:33,140 --> 00:02:38,140
with decimal places technically have different names.

44
00:02:38,530 --> 00:02:42,127
They are kind of different types of values.

45
00:02:42,127 --> 00:02:44,990
Even though they're both numbers,

46
00:02:44,990 --> 00:02:49,990
we call numbers without decimal places, integer numbers,

47
00:02:50,270 --> 00:02:53,603
and we call numbers with decimal places,

48
00:02:53,603 --> 00:02:58,250
floating point numbers or short floats.

49
00:02:58,250 --> 00:03:00,673
We call these numbers floats.

50
00:03:01,850 --> 00:03:04,350
And that's just something you can keep in the back of your

51
00:03:04,350 --> 00:03:07,410
mind since that is sometimes important.

52
00:03:07,410 --> 00:03:10,003
And you will sometimes hear these terms.

