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

preview_player
Показать описание
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 ===

=== 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! ==

== My Resources ==

✨ 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.
Рекомендации по теме
Комментарии
Автор

I recorded and edited this video a whole week before all the protests started, but I still wanted to drop this video.
Please please PLEASE donate, do your research, and help however your can with supporting the Black Lives Matter Movement

If you wanna talk about what's going on DM me on Twitter 🖤

IjemmaOnwuzulike
Автор

WELL EXPLAINED, i have been looking, watching and no one seemed to explain it this easy

tonytony-fcgq
Автор

Thank you for the clear explanation. I'm struggling a bit grasping some concepts in JS, and the way you put these into words definitely makes it a tiny bit more understandable. New subscriber here :)

moshmoshca
Автор

Such a great video, I hope you get more subs soon.

processorbot
Автор

Could you do a talk about callback, promise, async and wait

tonytony-fcgq