JavaScript Equality Operators | Common Mistake

Published: 05 March 2023
on channel: Jakubication
564
9

JavaScript likes to be wacky, as in JavaScript it tries as hard as it possibly can for two things to be "==" so it doesn't have to return false. For example, in JavaScript, 0 is "==" to: false, 0, the empty string, "0", [], and [0]. It's important to know this behavior in JavaScript so you can know how to read JavaScript code, and also so you know that nine times out of ten it is better for your code to use "===" instead of "==".

Subscribe if you enjoyed :)

#javascript #code #programming #shorts


On this page of the site you can watch the video online JavaScript Equality Operators | Common Mistake with a duration of hours minute second in good quality, which was uploaded by the user Jakubication 05 March 2023, share the link with friends and acquaintances, this video has already been watched 564 times on youtube and it was liked by 9 viewers. Enjoy your viewing!