JavaScript has both double equals '==' and triple equals ' ===' comparison operator. Triple equals almost always better than double equals. The '='' operator takes only value into consideration, not the type. If we compare 1 with '1' using ===, then it will return a false value.
1 Comment
Sort: