1
00:00:00,600 --> 00:00:01,930
Hello and welcome.

2
00:00:01,930 --> 00:00:12,150
In this field you are introducing you to Javascript assignment operators assignment operators are busy.

3
00:00:12,150 --> 00:00:18,090
We used to assign values to Javascript variables.

4
00:00:18,090 --> 00:00:22,670
This is a table or a basic assignment operator.

5
00:00:22,680 --> 00:00:29,700
We have used this so far in this course the assignment operator is for a presentation by the equals

6
00:00:29,880 --> 00:00:35,220
sign and that basically size a value to a variable.

7
00:00:35,220 --> 00:00:42,270
For example you can have a variable called X and sign it a value of twenty seven.

8
00:00:42,480 --> 00:00:46,770
There are also other types of assignment operators.

9
00:00:46,770 --> 00:00:52,960
For example if you add a plus in front of the ecorse to sign.

10
00:00:53,100 --> 00:00:57,860
What that will do it will add a variable to another.

11
00:00:57,990 --> 00:01:05,230
So for example here we've got a variable x at added a plus in front of the equals sign.

12
00:01:05,610 --> 00:01:07,440
And then I've signed a value of y.

13
00:01:07,440 --> 00:01:13,850
Basically that is the same thing as X equals 2 x plus why.

14
00:01:13,980 --> 00:01:20,280
You can also add a surprise action sign before the year was too.

15
00:01:20,520 --> 00:01:21,870
And that all.

16
00:01:21,980 --> 00:01:28,530
If you had a multiplication sign before the equals to sign that all multiply.

17
00:01:28,740 --> 00:01:34,060
If you have a division that will divide if you have a model.

18
00:01:34,380 --> 00:01:43,590
I saw one so it operates in the same principle as the bloss AN EQUAL to sign works.

19
00:01:43,680 --> 00:01:51,750
So I've got my console open so I'm just going to declare a simple variable and use the assignment operator

20
00:01:51,810 --> 00:01:53,850
to give it a fact.

21
00:01:54,270 --> 00:02:03,930
So I'm going to create a variable called Z and when to use the assignment operator to give it the value

22
00:02:03,990 --> 00:02:14,220
of 15 so the cement operator has now signed the variable z value of 15.

23
00:02:14,220 --> 00:02:23,640
So if I want to call these variable I just call it by its name which is zet and a total return value

24
00:02:23,670 --> 00:02:24,900
of 15.

25
00:02:24,900 --> 00:02:29,010
Now I can add subtract to that value.

26
00:02:29,040 --> 00:02:43,410
For example I can call the variable Z and use the plots and he forced to upgrade to assign value.

27
00:02:43,420 --> 00:02:51,730
Obviously Phi that will now give that value 20 you can see the value increase to 20.

28
00:02:51,870 --> 00:03:05,340
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

29
00:03:07,230 --> 00:03:12,200
that or decrease the value from 20 to 12.

30
00:03:12,630 --> 00:03:19,860
I think you can do the multiplication the same way and do the Vission and then modulus.

31
00:03:19,860 --> 00:03:22,820
So that's basically how you use the assignment operator.

32
00:03:22,890 --> 00:03:29,880
The most popular way to use the assignment operator is just the first example here.

33
00:03:30,080 --> 00:03:36,420
Way as a sign you use the Course the scientist assign a value to a variable.

34
00:03:36,510 --> 00:03:46,100
But you can also use it in combination with the arithmetic operators to add subtract divide and to amend

35
00:03:46,100 --> 00:03:47,620
those and all kind of stuff.

36
00:03:47,910 --> 00:03:53,210
So that's basically it for this pto on assignment operators.

37
00:03:53,370 --> 00:03:54,720
Thank you for watching.

38
00:03:54,750 --> 00:03:55,750
Bye for now.
