All right.
Welcome back.
So in this video we're can talk about JavaScript operators.
So let's head over to the desktop here and click on H2 Doc shortcuts click on learn basic javascript.
We're going to have control shift and I mean do 0 7 and we're going to do.
Operator Just like that.
Close out the folder here.
Head over to sublime close out that and right click operators to new file.
We're going to do index start HMO type an HMO tab.
And then we're going to go to the line 10 and I'm in the script.
Close it open it and I'm going to go inside here
right there and what I'm going to do is I'm going to show you the different operators that they have.
So they have a thing called
Assignment operators with the equals sign.
So we've been doing this in previous videos salt var x equals 10.
That's the assignment operator.
Then you can do the addition operators of VAR Zi equals X plus Y.
And then what we do is output already have X or DVR Y equals 20.
Right.
So they kind of mingle together.
Now the other thing you do is multiply.
So we could do var i equals X times Y.
Instead of adding them we can multiply them.
And that's another thing you do.
Now you can also do
javascript string operators.
So for that you would do var t x t one equals.
BOB For this example.
And then we'll do var t x t two equals.
Jones
and then we can do var text t t equals text one plus the space plus and we'll do text 2 and close it.
And the result you're going to get as Bob Jones and that's a javascript string operator.
So the plus operator and you'll also be used to add concatenation strings which is you would add spaces
and combine the two words together.
So it would just play like this Bob Jones like that.
OK
so another operator I want to talk about is the javascript comparison operators.
So we'll do javascript
comparison operators and so equal equal as equal to three equal signs is equal value and equal type
exclamation point.
Equal is not equal
exclamation point and two dashes is not equal value or not equal type the greater than sign is greater
than
the less than sign is less than
and the greater than with an equal sign is greater than or equal to the less than equal to is less than
or equal to and then the question mark up the question mark is to marry.
Operator
now they have Javascript
logical operators.
So with this one when we go up there
is not t marriage ternary 50 R and a Y and a r y.
Sorry about that.
So javascript logical operators you have to end signs and that's gonna be logical and two lines.
So if you hold shift and hit the lines like that that's logical or.
And then the last one is an exclamation point logical not OK.
Now the other one that to have is javascript type operators.
So if we do this one we got a javascript type operators.
Let's say that type of together returns that type of a variable
instance of returns true if an object is an instance
of an object type.
So I'll say that.
So then is javascript operators.
That gives you kind of a good overview of
what they do and why you use them and this is kind of like a little cheat sheet for you so that if you
run the issues down the road you can kind of reference this.
So all right.
Thanks for watching.
I will see you in the next video.