Hello and welcome.
In this field you are introducing you to Javascript assignment operators assignment operators are busy.
We used to assign values to Javascript variables.
This is a table or a basic assignment operator.
We have used this so far in this course the assignment operator is for a presentation by the equals
sign and that basically size a value to a variable.
For example you can have a variable called X and sign it a value of twenty seven.
There are also other types of assignment operators.
For example if you add a plus in front of the ecorse to sign.
What that will do it will add a variable to another.
So for example here we've got a variable x at added a plus in front of the equals sign.
And then I've signed a value of y.
Basically that is the same thing as X equals 2 x plus why.
You can also add a surprise action sign before the year was too.
And that all.
If you had a multiplication sign before the equals to sign that all multiply.
If you have a division that will divide if you have a model.
I saw one so it operates in the same principle as the bloss AN EQUAL to sign works.
So I've got my console open so I'm just going to declare a simple variable and use the assignment operator
to give it a fact.
So I'm going to create a variable called Z and when to use the assignment operator to give it the value
of 15 so the cement operator has now signed the variable z value of 15.
So if I want to call these variable I just call it by its name which is zet and a total return value
of 15.
Now I can add subtract to that value.
For example I can call the variable Z and use the plots and he forced to upgrade to assign value.
Obviously Phi that will now give that value 20 you can see the value increase to 20.
So I can also do the opposite so I can do variable Z and I use the minus an equal sign and 3 make it
that or decrease the value from 20 to 12.
I think you can do the multiplication the same way and do the Vission and then modulus.
So that's basically how you use the assignment operator.
The most popular way to use the assignment operator is just the first example here.
Way as a sign you use the Course the scientist assign a value to a variable.
But you can also use it in combination with the arithmetic operators to add subtract divide and to amend
those and all kind of stuff.
So that's basically it for this pto on assignment operators.
Thank you for watching.
Bye for now.