In here we are getting to know about operators of JavaScript.
What is an operator?
Let us take an example ,
4+2=6;
In here '+' is called as operator and 4,2 are called as operands.
JavaScript supports several operators such as,
- Arithmetic Operators
- Operators such as + , - , * , / , % , ++ , --
- Comparison Operators
- Operators such as == , != , > , < , >= , <=
- Logical Operators
- Operators such as Logiacal AND(&) , Logical OR(||), Logical NOT(!)
- Assignment operators
- Operators such as =
- Conditional operators
- Operators such as (?:)
Let's do a simple example for clarify this.
In here, 15 is assigned to x and 10 is assigned to y. Then x+y means 15+10 . So the answer must be 25. Now let's look at the result.
Hope you can understand this.

good work!
ReplyDeleteThanks..
ReplyDelete