Myvideo

Guest

Login

JavaScript == VS ===

Uploaded By: Myvideo
1 view
0
0 votes
0

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: ==-vs-=== Twitter: GitHub: CodePen: #JavaScript #WebDevelopment #Programming ... #WebDevSimplified #webdevsimplified #javascript_==_vs_=== #javascript_===_operator #javascript_double_equals_vs_triple_equals #javascript_triple_equals_tutorial #javascript_===_operator_vs_== #javascript_==_===_difference #javascript_tutorial #javascript_===_vs_== 20190124 C5ZVC4HHgIg

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later