Java Script VS (Дата оригинальной публикации
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: Twitter: GitHub: CodePen: , JavaScript, WebDevelopment, Programming
|
|