Header Ads Widget

Responsive Advertisement

operators in javascript

There are majorly 5 type of operators:

1) Arithmetic(+,-,*,/,%)
E.g 
let x = 5;
let y = 6;
let add = x+y;
let sub = x-y
let multiply = x*y
let devide = x/y

2) Comparison(relational or arithmetic)(>,<,>=,<=,==,!=)
E.g
 let a = 5;
let b = 6;
Console.log(a>b) output will be false.


3) Logical Operators(||, &&,!)

let c = true;
let d = false;
Console.log(c&&d)


4) Assignment Operators(=, +=,-=,*=,/=, %=)


5) ternary operators:

Post a Comment

0 Comments