1
00:00:00,510 --> 00:00:03,230
Hello and welcome to this video.

2
00:00:03,420 --> 00:00:12,900
In this video harby Explaining what her arithmetic operators are and also showing you basic examples

3
00:00:13,650 --> 00:00:19,690
arithmetic operators are operators that I used to perform.

4
00:00:19,890 --> 00:00:26,430
Men take actions or functions on numbers or variables.

5
00:00:26,430 --> 00:00:32,220
Here's a table of some basic arithmetic operators.

6
00:00:32,250 --> 00:00:37,720
So start from the top where we've got the addition operator.

7
00:00:38,340 --> 00:00:43,660
Basically that is used to add numbers of values together.

8
00:00:43,860 --> 00:00:52,410
For example two plus two we've got the suppression operator which is used to surprise at numbers of

9
00:00:52,610 --> 00:00:53,720
values.

10
00:00:53,790 --> 00:00:58,360
Example for some pracht to Mex.

11
00:00:58,380 --> 00:01:06,780
We've got the multiplication operator which is basically used to multiply numbers or values.

12
00:01:06,840 --> 00:01:18,320
Example 7 times 3 in programming and in Javascript multiplication is represented by the asterisks symbol.

13
00:01:18,340 --> 00:01:24,720
Next we've got the division which is used to divide numbers or values.

14
00:01:24,720 --> 00:01:27,900
Example would divide 4 by.

15
00:01:27,960 --> 00:01:38,160
It makes we've got the S which is represented by the percent sign their model models operate or is used

16
00:01:38,160 --> 00:01:46,620
to return the remainder from the deficients and when the vital numbers mother laws will return only

17
00:01:46,890 --> 00:01:49,210
what is left from the division.

18
00:01:49,590 --> 00:01:57,240
Next we've got the increment operator which is represented by two plus symbols.

19
00:01:57,240 --> 00:02:02,940
What that does it increases the value of N number or is variable.

20
00:02:02,940 --> 00:02:10,140
For example if you've got a variable that has a value of 7 you want to increase their value to 8.

21
00:02:10,280 --> 00:02:17,700
He use the call the variable name and then you add B plus plus symbol which is the increment operator

22
00:02:18,030 --> 00:02:20,490
and that will increase the value bound 1.

23
00:02:20,840 --> 00:02:28,550
The positive that is the discriminant operator which is used to decrease the value of N number or a

24
00:02:28,650 --> 00:02:30,850
variable by Y.

25
00:02:30,900 --> 00:02:37,020
So these are the basic arithmetic operators in javascript.

26
00:02:37,020 --> 00:02:43,040
You also find that these are identical to most programming languages as well.

27
00:02:43,110 --> 00:02:49,860
So I'm going to go out to my console and basically show you some basic examples.

28
00:02:49,860 --> 00:02:56,840
Open on Google home page on the Google home page to access the console.

29
00:02:57,060 --> 00:03:03,750
If you are on a Windows computer you press control shift and J.

30
00:03:04,100 --> 00:03:08,540
If you are on a Mac you press command shift and J.

31
00:03:08,790 --> 00:03:11,540
That will give you access to the console.

32
00:03:11,760 --> 00:03:14,350
So I've got my console open.

33
00:03:14,370 --> 00:03:19,000
You should have this on the line next to the word console.

34
00:03:19,140 --> 00:03:25,050
So let me just run through the basic arithmetic operator but first I want to illustrate.

35
00:03:25,070 --> 00:03:29,170
If a basic addition you me already know this already.

36
00:03:29,190 --> 00:03:32,820
Would love apologize if I am going through this again.

37
00:03:33,000 --> 00:03:36,760
So I'm just going to illustrate by adding two numbers together.

38
00:03:37,150 --> 00:03:45,020
I'm going to do two plus two and press enter and that will give you four.

39
00:03:45,050 --> 00:03:47,840
Next let me illustrate this suppression.

40
00:03:47,850 --> 00:03:49,700
I'm going to surprise two numbers.

41
00:03:49,740 --> 00:03:59,230
So for from to press and time my keyboard and that will return the value of two.

42
00:03:59,260 --> 00:04:10,800
Next I want to multiply two moves so I'll do a 7 and Asterix Asterix is what you use to represent multiplication

43
00:04:10,890 --> 00:04:20,240
in javascript and will multiply 7 by 3 Press pentair that returns 21.

44
00:04:20,260 --> 00:04:23,770
Next I'm going to illustrate a deficient example.

45
00:04:23,800 --> 00:04:34,440
I'm going to divide two numbers so I'd divide 8 by 4 and you represent division with the slash symbol

46
00:04:34,680 --> 00:04:38,110
press enter and that will return to.

47
00:04:38,460 --> 00:04:47,250
Next I want to illustrate the model lost operator more will only return the value of what is left after

48
00:04:47,430 --> 00:04:48,370
division.

49
00:04:48,600 --> 00:04:51,170
So I'll do fine.

50
00:04:51,870 --> 00:04:54,690
And the percent to a percent more deloss.

51
00:04:55,110 --> 00:04:59,800
So I expect this to return 1 because 2 can only go into.

52
00:05:00,090 --> 00:05:02,060
Twice and it should be.

53
00:05:02,100 --> 00:05:05,760
Remember one he can say is returned one next.

54
00:05:05,790 --> 00:05:09,870
I want to illustrate how the incremental operator works.

55
00:05:09,900 --> 00:05:13,010
First I'm going to declare a variable called X..

56
00:05:13,370 --> 00:05:24,840
I'm going to give you the value of seven so that if I call that value variable x it will return seven.

57
00:05:24,990 --> 00:05:33,810
So if I want to change the value from 7 to 8 I can use the increment operator by just calling the variable

58
00:05:33,970 --> 00:05:43,130
basanti and doing plus plus twice and that will increase if I now call the variable base.

59
00:05:43,150 --> 00:05:52,160
Maybe I should now return a value off it makes I want to illustrate how the Discriminate operator works.

60
00:05:52,200 --> 00:06:04,190
First I'm going to declare a variable called Why I am going to give it a value or 5 next if I call that

61
00:06:04,200 --> 00:06:07,770
variable it will return to 5.

62
00:06:07,770 --> 00:06:10,990
So for example I want to decrease it to full.

63
00:06:11,350 --> 00:06:21,140
I'll just call the variable based name and use the decrements operator which is two dashes.

64
00:06:21,480 --> 00:06:22,530
Press Enter.

65
00:06:22,530 --> 00:06:24,840
Now if I call that variable y.

66
00:06:24,930 --> 00:06:27,100
Now show me a value or form.

67
00:06:27,360 --> 00:06:31,020
So that's basically how the Discriminate operator works.

68
00:06:31,020 --> 00:06:40,020
These are just very basic examples to illustrate how the javascript arithmetic operators work.

69
00:06:40,020 --> 00:06:41,190
Thanks for watching.

70
00:06:41,190 --> 00:06:42,250
Bye for now.
