Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

equality operator javascript

[100] == 100       // true
[100] === 100      // false
 
'100' == 100       // true
'100' === 100      // false

[] == 0             // true
[] === 0            // false

'' == false         // true
'' === false        // false

'' == 0             // true
'' === 0            // false

false == 0          // true
false === 0         // false

null == undefined   // true
null === undefined  // false
 
PREVIOUS NEXT
Tagged: #equality #operator #javascript
ADD COMMENT
Topic
Name
8+9 =