javascript === ?
javascript === ?
- Started
- Last post
- 5 Responses
- g3kk0k1d
in javascript what does the triple equals sign mean|do?
i.e. if(true === 0)
does it force the "objects" to be tested as strict boolean?
- nocomply0
There is also an identity operator, represented by a triple equals sign ( === ), which only equates to true when both operands have the same value and are of the same type.
'1' === '1' // true
'1' === 1 // false
'1' === true // falsetaken from...
http://academ.hvcc.edu/~kantopet…
- Mimio0
Checks value and type of the compared objects.
- fusionpixel0
checks for exact same equal objects
- g3kk0k1d0
thanks :)
- uberdesigner0
checks for proper concantination of a boolean script. sort of like check for equality then check for explicit booleanography. this is what expert java scripters call a "bouncing ball"