JavaScript == VS ===

Pubblicato il: 24 gennaio 2019
sul canale di: Web Dev Simplified
48,591
2.1k

Unlike many programming languages JavaScript has both a double equals (==) and a triple equals (===) equality operator. For the most part these two operators work exactly the same, but the double equals operator converts the types of the objects being compared to the same type. This sounds like a good thing at first, but it can cause some strange bugs to occur when comparing certain objects/types. Because of this the triple equals operator should almost always be used, except in the case of checking if an object is null or undefined.

== vs === Article: https://blog.webdevsimplified.com/202...

Twitter:
  / devsimplified  

GitHub:
https://github.com/WebDevSimplified

CodePen:
https://codepen.io/WebDevSimplified


#JavaScript #WebDevelopment #Programming


In questa pagina del sito puoi guardare il video online JavaScript == VS === della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Web Dev Simplified 24 gennaio 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 48,591 volte e gli è piaciuto 2.1 mille spettatori. Buona visione!