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
Auf dieser Seite können Sie das Online-Video JavaScript == VS === mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Web Dev Simplified 24 Januar 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 48,591 Mal angesehen und es wurde von 2.1 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!