if anyone ask you to define the what is expression then how will you explain it. well it is quiet easy let me do for you.
“A fragment of code that produces values is called an Expression.”
Literally, you can say that any code written in JavaScript is an expression.
for example:- 55 or “expression”
Operators:-
How Operators can be defined ?
“Operators are the Symbols which are used to perform operations on the operands”
JavaScript has the both unary and binary Operators and it also have one Ternary Operator which also called as conditional operator.
Unary operators:- it has one operand and one operator before or after of operand. operator operand or operand operator Eg:- ++x or x++
Binary Operator:- It requires two operands one before and one after the operator operand1 operator operand2 Eg:- 5+5 or 5*3
There are following type of JavaScript operators:-
- Arithmetic Operators
- Assignment Operators
- Comparison Operators
- Logical Operators
- Conditionals(Ternary) Operator
- Bitwise Operators
- Other’s Operators
- Typeof operator
- Coma operator
- Void operator
- new
- instanceof
I Will be discussing all the operators one by one in another article