So now for example in line 60 if you want to actually output the value of the first number are valuable
to the console Let's see what happens system that out that print land and an insight Apprentice's.
I just need to refer to the name of my variable.
Ok let me actually put a text here.
This is their value.
Of my first number valuable after
incrementing
it's value
so I just referred to the name of my valuable first number.
OK.
And then at the end of my statement I need to put in a semicolon.
OK.
Now if I run my project as you can see let me actually make this area wider in order to show you what's
going on here.
As you can see it's going to actually output this value to the consumer.
OK.
This is the value of my first number of valuable after incrementing its value.
So this value is 51.
OK.
So as you can see here in line 58 I actually incremented the value of my first number of valuable buy
one.
OK.
But because I use the postfix operator as you can see here I put the increment operator after the variable
name OK.
This is called the postfix OPERATOR OK because I put the increment operator after the variable name.
OK because I put the postfix operator on my valuable name here.
OK.
It can actually assign only the value of this variable to my second variable.
OK.
And then it's going to increment its value by one.
OK.
So let me actually explain once again because I use the postfix operator on my variable name.
OK.
It's going to actually assign the value of this first number variable to my second number variable.
And then it's going to add one value to my value.
OK.
So in this line of code here as you can see it's going to actually output the value of this first number
the value of an after incrementing one value.
To my first number value and in the console I divide the value of my first value but is 50.
OK.
The value of my second variable is 50.
Why.
Because of these are postfix operator here.
OK.
I use the postfix operator on my first number valuable because of this.
First it's going to actually assign the value of my first number valuable to the second number variable.
After that it's going to actually increment the value of this first number variable by 1.
Ok because of this post fixed.
OPERATOR OK.
But there is a different story about prefix operators.
OK so now let me actually show you in the console that this is the value of my first value.
OK 52 the value of my first value bet is 50.
OK.
The value of my second variable is 50.
This value here as you can see is the result of execution of this line of code here in line 60.
OK here I decided to output the value of my first number valuable to the console after incrementing
its value by 1.
OK.
So as you can see here.
OK.
I use the postfix operator here.
OK.
But in line 61 I assigned another value to my first number variable.
I decided to use the prefix operator on my variable name.
OK.
As against the first number and in line sixty 62 I decided to output the value of my first number variable
to the con..
So as you can see the value of my first number valuable is 52.
So let me actually show you what's going on here.
OK.
Here in line 52 I declared my first number variable OK.
I didn't assign any value to my value but as you can see here here in line 53 I declared my second number
variable.
And here in line 54 I declared my first number valuable but I didn't assign any value to my variable
here.
OK.
Here in line 56 as you can see here I assigned a value to my first number variable which is number 50.
OK.
Here in line 57 I decided to output the value of this first number variable to the console.
So as you can see here the value of my first number of value bet is this 50 this value here is the result
of execution of this line of code here.
OK.
And here in this line of code I am telling the computer to output the value of my first number variable
to the console.
OK.
As you can see here 50 and here in line fifty eight I decided to actually assign a value to my second
number variable.
OK.
So I just refer to the name of my second number valuable.
And then I put an assignment operator.
And here I actually decided to assign a value to my second value.
So I just wanted to actually refer to the name of my first number variable in order to read its value.
Ok I use this postfix operator here on my valuable net here.
OK.
So as you can see in the console the value of my second number valuable as you can see here is 50.
OK in line 60 here as you can see I decided to output the value of my first number variable to the console.
This value is out to the console OK.
This is the value of my first number variable after incrementing its value.
As you can see its value is 51.
OK.
Because of this expression here first number plus plus.
OK.
And in line 61 I decided to assign a value to my first number value.
OK.
And here are used the prefix operator on my first number.
Valuable as you can see here.
OK.
So in line 62 I decided to output the value of this first number variable to the console.
So as you can see here the value of these first number valuable is 52.
OK.
Why.
Because I used the prefix operator here.
OK.
When using prefix operator is an invaluable in an expression.
The variable is incremented or decremented before its value is evaluated in that expression.
OK.
In this line of code here as you can see I use the prefix operator here.
OK so the value of the first number of valuable is going to be incremented first and then it's going
to be assigned to the first number value.
OK because I used that plus plus operator before my variable name I use this prefix operator on my variable
name.
OK so let me actually tell you once again when using prefix operators on a variable in an expression
the variable is incremented or decremented before its value is evaluated in that expression.
OK so the value of this value as you can see first number variable is incremented before it is going
to be assigned to my first number value.
So as you can see in the console the value of my first value is 52.
Why.
Because I used this prefix operator on my variable name.
And when you use prefix operators on your variable names the variable is going to be incremented or
decremented before its value is evaluated in that expression.
OK so because I use this prefix operator on my variable name.
So first the value of my variable is going to be incremented after actually incrementing the value of
my value here.
And after that after I actually incrementing the value of my variable here is going to be assigned to
the first number variable here.
OK an inline sixty two I decided to output this value to the console.
So now let me actually show you another example.