Why You Should Only Use === in JavaScript - Strict vs Loose Equality for Beginners

Опубликовано: 08 Июнь 2026
на канале: Ijemma Onwuzulike
238
31

Ever wondered what the difference between == and === was? This video is going to cover that difference and show you why you should always be using ===

🎬 Subscribe to the channel! -    / @ijemmaonwuzulike  
🎬Level Up Your JavaScript playlist -    • JavaScript Bites  

=== or the strict equality check operator checks both the value and data type of the two operands, while == or the loose equality check operator only checks the value using a common data type.

JavaScript developers will tell you to never use == because it can lead to a lot of false positives. The rule of thumb is to make your code more reliable and safe by always using ===

== Follow Me! ==
🐦 Twitter -   / ijemmaohno  

== My Resources ==
🎵 Music from LAKEY -   / lakeyinspired  
🎵 StreamBeats by Harris Heller -    / @streambeatsbyharrisheller  
📼 Stock video from Videvo - https://www.videvo.net

✨ Who I am:

I'm Ijemma, a frontend software engineer currently working in New York City. I make videos on all things JavaScript and, more broadly, frontend web development.