-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomparison-operators.js
More file actions
11 lines (11 loc) · 905 Bytes
/
comparison-operators.js
File metadata and controls
11 lines (11 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
var a = 10;
var b = 10;
//var c = a==b; //check both are value same. It's Ans=true if any var value chnage get ans false
//var c = a===b; //check both are value with data type Ans=true if any var value chnage get ans false
//var c = a!=b; //check both value are not same get Ans. true and value are same Ans is false;
//var c = a!==b; // check both value and data type not same get Ans. true and value or data type same Ans. false;
//var c = a>b; //check first var value greter then second var value got Ans. true other wise Got Ans. False;
//var c = a<b; //check first var value less then second var value got Ans. true other wise Got Ans. False;
//var c = a>=b; //check first var value greter then or qual to second var value got Ans. true other wise Got Ans. False;
var c = a<=b; //check first var value less or euals to then second var value got Ans. true other wise Got Ans. False;
console.log(c);