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
En esta página del sitio puede ver el video en línea JavaScript Equality Operators | Common Mistake de Duración hora minuto segunda en buena calidad , que subió el usuario Jakubication 05 marzo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 564 veces y le gustó 9 a los espectadores. Disfruta viendo!