1
00:00:00,420 --> 00:00:08,790
So now for example in line 60 if you want to actually output the value of the first number are valuable

2
00:00:08,810 --> 00:00:17,010
to the console Let's see what happens system that out that print land and an insight Apprentice's.

3
00:00:17,070 --> 00:00:20,110
I just need to refer to the name of my variable.

4
00:00:20,120 --> 00:00:22,350
Ok let me actually put a text here.

5
00:00:22,470 --> 00:00:25,260
This is their value.

6
00:00:26,620 --> 00:00:32,830
Of my first number valuable after

7
00:00:36,010 --> 00:00:36,810
incrementing

8
00:00:40,450 --> 00:00:42,130
it's value

9
00:00:46,710 --> 00:00:50,860
so I just referred to the name of my valuable first number.

10
00:00:50,870 --> 00:00:51,420
OK.

11
00:00:51,570 --> 00:00:54,190
And then at the end of my statement I need to put in a semicolon.

12
00:00:54,190 --> 00:00:54,450
OK.

13
00:00:54,460 --> 00:01:02,820
Now if I run my project as you can see let me actually make this area wider in order to show you what's

14
00:01:02,820 --> 00:01:03,770
going on here.

15
00:01:04,140 --> 00:01:08,170
As you can see it's going to actually output this value to the consumer.

16
00:01:08,190 --> 00:01:08,720
OK.

17
00:01:08,820 --> 00:01:14,310
This is the value of my first number of valuable after incrementing its value.

18
00:01:14,460 --> 00:01:16,180
So this value is 51.

19
00:01:16,410 --> 00:01:17,020
OK.

20
00:01:17,250 --> 00:01:25,050
So as you can see here in line 58 I actually incremented the value of my first number of valuable buy

21
00:01:25,050 --> 00:01:25,500
one.

22
00:01:25,620 --> 00:01:26,260
OK.

23
00:01:26,550 --> 00:01:32,660
But because I use the postfix operator as you can see here I put the increment operator after the variable

24
00:01:32,700 --> 00:01:33,660
name OK.

25
00:01:33,810 --> 00:01:40,800
This is called the postfix OPERATOR OK because I put the increment operator after the variable name.

26
00:01:40,860 --> 00:01:45,940
OK because I put the postfix operator on my valuable name here.

27
00:01:46,070 --> 00:01:46,620
OK.

28
00:01:46,670 --> 00:01:51,590
It can actually assign only the value of this variable to my second variable.

29
00:01:51,720 --> 00:01:52,210
OK.

30
00:01:52,320 --> 00:01:56,310
And then it's going to increment its value by one.

31
00:01:56,430 --> 00:01:57,400
OK.

32
00:01:57,780 --> 00:02:04,420
So let me actually explain once again because I use the postfix operator on my variable name.

33
00:02:04,700 --> 00:02:05,440
OK.

34
00:02:05,790 --> 00:02:12,200
It's going to actually assign the value of this first number variable to my second number variable.

35
00:02:12,360 --> 00:02:15,770
And then it's going to add one value to my value.

36
00:02:15,780 --> 00:02:16,390
OK.

37
00:02:16,680 --> 00:02:24,050
So in this line of code here as you can see it's going to actually output the value of this first number

38
00:02:24,050 --> 00:02:27,050
the value of an after incrementing one value.

39
00:02:27,060 --> 00:02:33,010
To my first number value and in the console I divide the value of my first value but is 50.

40
00:02:33,020 --> 00:02:33,860
OK.

41
00:02:34,170 --> 00:02:36,810
The value of my second variable is 50.

42
00:02:36,810 --> 00:02:37,400
Why.

43
00:02:37,530 --> 00:02:41,130
Because of these are postfix operator here.

44
00:02:41,310 --> 00:02:42,130
OK.

45
00:02:42,570 --> 00:02:48,100
I use the postfix operator on my first number valuable because of this.

46
00:02:48,310 --> 00:02:54,070
First it's going to actually assign the value of my first number valuable to the second number variable.

47
00:02:54,090 --> 00:03:01,500
After that it's going to actually increment the value of this first number variable by 1.

48
00:03:01,680 --> 00:03:03,550
Ok because of this post fixed.

49
00:03:03,570 --> 00:03:04,800
OPERATOR OK.

50
00:03:04,980 --> 00:03:08,570
But there is a different story about prefix operators.

51
00:03:08,670 --> 00:03:15,590
OK so now let me actually show you in the console that this is the value of my first value.

52
00:03:15,610 --> 00:03:19,520
OK 52 the value of my first value bet is 50.

53
00:03:19,530 --> 00:03:20,280
OK.

54
00:03:20,280 --> 00:03:23,150
The value of my second variable is 50.

55
00:03:23,220 --> 00:03:30,870
This value here as you can see is the result of execution of this line of code here in line 60.

56
00:03:30,970 --> 00:03:40,290
OK here I decided to output the value of my first number valuable to the console after incrementing

57
00:03:40,350 --> 00:03:41,640
its value by 1.

58
00:03:41,730 --> 00:03:42,530
OK.

59
00:03:42,840 --> 00:03:43,990
So as you can see here.

60
00:03:44,160 --> 00:03:44,710
OK.

61
00:03:44,760 --> 00:03:46,550
I use the postfix operator here.

62
00:03:46,710 --> 00:03:47,720
OK.

63
00:03:48,090 --> 00:03:54,440
But in line 61 I assigned another value to my first number variable.

64
00:03:54,660 --> 00:03:59,190
I decided to use the prefix operator on my variable name.

65
00:03:59,240 --> 00:03:59,480
OK.

66
00:03:59,500 --> 00:04:07,500
As against the first number and in line sixty 62 I decided to output the value of my first number variable

67
00:04:07,800 --> 00:04:08,670
to the con..

68
00:04:08,940 --> 00:04:12,840
So as you can see the value of my first number valuable is 52.

69
00:04:13,230 --> 00:04:15,530
So let me actually show you what's going on here.

70
00:04:15,630 --> 00:04:16,090
OK.

71
00:04:16,170 --> 00:04:20,780
Here in line 52 I declared my first number variable OK.

72
00:04:20,820 --> 00:04:29,140
I didn't assign any value to my value but as you can see here here in line 53 I declared my second number

73
00:04:29,150 --> 00:04:30,300
variable.

74
00:04:30,330 --> 00:04:39,430
And here in line 54 I declared my first number valuable but I didn't assign any value to my variable

75
00:04:39,450 --> 00:04:39,700
here.

76
00:04:39,720 --> 00:04:40,840
OK.

77
00:04:41,340 --> 00:04:51,180
Here in line 56 as you can see here I assigned a value to my first number variable which is number 50.

78
00:04:51,240 --> 00:04:52,150
OK.

79
00:04:52,830 --> 00:05:01,600
Here in line 57 I decided to output the value of this first number variable to the console.

80
00:05:02,130 --> 00:05:09,210
So as you can see here the value of my first number of value bet is this 50 this value here is the result

81
00:05:09,390 --> 00:05:11,700
of execution of this line of code here.

82
00:05:11,730 --> 00:05:12,180
OK.

83
00:05:12,180 --> 00:05:18,590
And here in this line of code I am telling the computer to output the value of my first number variable

84
00:05:18,750 --> 00:05:19,530
to the console.

85
00:05:19,770 --> 00:05:20,420
OK.

86
00:05:20,610 --> 00:05:31,290
As you can see here 50 and here in line fifty eight I decided to actually assign a value to my second

87
00:05:31,290 --> 00:05:32,350
number variable.

88
00:05:32,430 --> 00:05:33,100
OK.

89
00:05:33,690 --> 00:05:37,090
So I just refer to the name of my second number valuable.

90
00:05:37,140 --> 00:05:39,730
And then I put an assignment operator.

91
00:05:40,110 --> 00:05:45,850
And here I actually decided to assign a value to my second value.

92
00:05:46,230 --> 00:05:53,860
So I just wanted to actually refer to the name of my first number variable in order to read its value.

93
00:05:53,940 --> 00:05:58,240
Ok I use this postfix operator here on my valuable net here.

94
00:05:58,280 --> 00:05:58,720
OK.

95
00:05:58,770 --> 00:06:05,230
So as you can see in the console the value of my second number valuable as you can see here is 50.

96
00:06:05,400 --> 00:06:14,340
OK in line 60 here as you can see I decided to output the value of my first number variable to the console.

97
00:06:14,340 --> 00:06:16,280
This value is out to the console OK.

98
00:06:16,290 --> 00:06:21,190
This is the value of my first number variable after incrementing its value.

99
00:06:21,360 --> 00:06:23,520
As you can see its value is 51.

100
00:06:23,720 --> 00:06:24,420
OK.

101
00:06:24,750 --> 00:06:29,160
Because of this expression here first number plus plus.

102
00:06:29,160 --> 00:06:30,440
OK.

103
00:06:30,780 --> 00:06:38,380
And in line 61 I decided to assign a value to my first number value.

104
00:06:38,510 --> 00:06:38,840
OK.

105
00:06:38,840 --> 00:06:43,930
And here are used the prefix operator on my first number.

106
00:06:43,930 --> 00:06:45,920
Valuable as you can see here.

107
00:06:46,110 --> 00:06:46,980
OK.

108
00:06:47,850 --> 00:06:54,890
So in line 62 I decided to output the value of this first number variable to the console.

109
00:06:55,260 --> 00:07:00,740
So as you can see here the value of these first number valuable is 52.

110
00:07:01,070 --> 00:07:01,670
OK.

111
00:07:01,860 --> 00:07:02,550
Why.

112
00:07:02,580 --> 00:07:06,170
Because I used the prefix operator here.

113
00:07:06,240 --> 00:07:06,900
OK.

114
00:07:07,200 --> 00:07:11,660
When using prefix operator is an invaluable in an expression.

115
00:07:11,840 --> 00:07:19,090
The variable is incremented or decremented before its value is evaluated in that expression.

116
00:07:19,310 --> 00:07:19,850
OK.

117
00:07:19,950 --> 00:07:25,670
In this line of code here as you can see I use the prefix operator here.

118
00:07:26,040 --> 00:07:34,830
OK so the value of the first number of valuable is going to be incremented first and then it's going

119
00:07:34,830 --> 00:07:37,570
to be assigned to the first number value.

120
00:07:37,590 --> 00:07:47,190
OK because I used that plus plus operator before my variable name I use this prefix operator on my variable

121
00:07:47,190 --> 00:07:47,630
name.

122
00:07:47,790 --> 00:07:55,020
OK so let me actually tell you once again when using prefix operators on a variable in an expression

123
00:07:56,190 --> 00:08:02,890
the variable is incremented or decremented before its value is evaluated in that expression.

124
00:08:02,920 --> 00:08:10,170
OK so the value of this value as you can see first number variable is incremented before it is going

125
00:08:10,170 --> 00:08:12,770
to be assigned to my first number value.

126
00:08:12,960 --> 00:08:19,380
So as you can see in the console the value of my first value is 52.

127
00:08:19,380 --> 00:08:20,000
Why.

128
00:08:20,040 --> 00:08:23,930
Because I used this prefix operator on my variable name.

129
00:08:24,000 --> 00:08:29,580
And when you use prefix operators on your variable names the variable is going to be incremented or

130
00:08:29,580 --> 00:08:33,300
decremented before its value is evaluated in that expression.

131
00:08:33,310 --> 00:08:37,860
OK so because I use this prefix operator on my variable name.

132
00:08:37,910 --> 00:08:43,770
So first the value of my variable is going to be incremented after actually incrementing the value of

133
00:08:43,770 --> 00:08:45,420
my value here.

134
00:08:45,990 --> 00:08:51,990
And after that after I actually incrementing the value of my variable here is going to be assigned to

135
00:08:51,990 --> 00:08:53,410
the first number variable here.

136
00:08:53,450 --> 00:08:58,520
OK an inline sixty two I decided to output this value to the console.

137
00:08:58,770 --> 00:09:01,360
So now let me actually show you another example.

