js comparison operators
//The OR operator in Javascript is 2 verticals lines: ||
var a = true;
var b = false;
if(a || b) {
//one of them is true, code inside this block will be executed
}Javascript Comparison Operators
== Equal to
=== Equal value and equal type
!= Not equal
!== Not equal value or not equal type
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
? Ternary operator
x >= y//Equal to or more than
a >= b
//Equal to or less than
a <= btrue != true // => false0 !== "0"
0 !== 0
Also in JavaScript:
- iso to date javascript
- javascript leave page warning
- how to not wait until function response js
- javascript get the last element of json
- js loop trough map
- function click anywhere javascript
- javascript get last word in string
- javascript document object model getElementsByClassName
- conditional rendering alert if input fields are empty
- how to remove event listener in jquery
- generate component with module angular 8
- random array javascript
- angular input value
- node.js server
- angular new component
- javascript get width of a div
- how to download and install ssms in windows 10
- exponent javascript
- jstl spring taglib
- how to load existing json data in nuxt
- stream recording javascript
- create 2d array in javascript filled with 0
- checking if a character is an alphabet in js
- js date minus 18 years