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.

3m read time From blog.hrithwik.me
Post cover image
Table of contents
What's the Difference?When to use the '==' Operator
1 Comment

Sort: