January 2018
Intermediate to advanced
332 pages
7h 36m
English
JavaScript can be a fairly tricky language when coming to typecasting or type conversions. The fact that there are no data types does not make this any simpler. Using a == forces an implicit typecasting as compared to ===. So, it is advisable to always use === unless you want 12== 12 to be true.
For more details on understanding why it works the way it does, refer to the Abstract Equality Comparison Algorithm, found at https://www.ecma-international.org/ecma-262/5.1/#sec-11.9.3.
Read now
Unlock full access