1Javascript Comparison Operators
2== Equal to
3=== Equal value and equal type
4!= Not equal
5!== Not equal value or not equal type
6> Greater than
7< Less than
8>= Greater than or equal to
9<= Less than or equal to
10? Ternary operator
11
1let arr =["a","b","c"];
2// ES6 way
3const duplicate = [...arr];
4
5// older method
6const duplicate = Array.from(arr);
1//The OR operator in Javascript is 2 verticals lines: ||
2
3var a = true;
4var b = false;
5
6if(a || b) {
7 //one of them is true, code inside this block will be executed
8}