JavaScript Equality Operators | Common Mistake

Pubblicato il: 05 marzo 2023
sul canale di: 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


In questa pagina del sito puoi guardare il video online JavaScript Equality Operators | Common Mistake della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Jakubication 05 marzo 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 564 volte e gli è piaciuto 9 spettatori. Buona visione!