Data Type Testing
Explore how to accurately test data types in JavaScript by using triple equality operators to prevent unintended type coercion. Learn about differences between literals and constructors for objects and arrays, and understand true empty objects and type conversions.
We'll cover the following...
We'll cover the following...
How is testing done?
To test the equality or inequality of two primitive data values, we always use the triple equality symbol (=== and !==) instead of the double equality symbol (== and !=). Otherwise, for instance, the ...