Answers for "typescript == vs ==="

3

typescript == vs ===

/*
The == operator will compare for equality after doing any necessary type conversions. 
The === operator will not do the conversion, so if two values are not the same type === will simply return false. 
Both are equally quick.
*/

0 == '' // true
0 === '' // false
Posted by: Guest on May-21-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language