JavaScript Simplified Course: https://javascriptsimplified.com
Type coercion is a confusion topic for many JavaScript developers and most never truly understand how it works. Because of this many developers write bugging code using the bang operator without even realizing it. In this video I will be discussion the potential downfalls of the bang operator as well as how to avoid them.
Materials/References:
JavaScript Simplified Course: https://javascriptsimplified.com
== vs === Video: https://youtu.be/C5ZVC4HHgIg
== vs === Article: https://blog.webdevsimplified.com/2020-08/==-vs-===
Find Me Here:
My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:29 - Why this is bad
03:38 - Implicit vs explicit type coercion
05:00 - How to fix this issue
#TypeCoercion #WDS #JavaScript