I want to quickly talk about something called augmented.
Assignment.
So we've learned that we can create variables like some value.
And we can assign it.
A data type in our case, let's just assign it five.
There's something called augmented assignment operator that allows us to do something quite neat.
Let's have a look.
So if this value I want to increase in, let's say, five plus two, so add two to it.
I could do that.
Or I could even use some value, which is already five by the time it gets to line three and do something
like this if I print.
Some value and I click, run, I'll get seven because five plus two equals to seven.
So in memory, some value points to seven.
But there's a neater way of doing this called augmented assignment operator instead of doing something
like this.
I could just simply.
Add a plus to the equals, so we're going to say some value plus equals two is still going to equal
seven.
So it's the same thing as before.
And this skull augmented assignment operator, it's a shorthand of us doing something like this.
We can also change this to something like minus, which once again is like subtracting two from whatever
the previous value of.
Now, if I was to do this at the beginning here, so let's just do here and then comment this out,
if I click run.
I'll get an error because some value is not defined.
We haven't really created anything, so in order for this to work, we need to make sure that this variable
has some previous value.
So we've learned about the plus, the minus.
And then finally, we have the multiply once again, if I run this, we get ten.
Remember, this is just the same as us saying some value times to.
Is just a shorthand for all right.
This was a quick video in case you see something like this in the wild.
Now, you shouldn't be afraid.
Remember that the operator comes to the left of the equals sign.
I'll see in the next one by.