December 2013
Intermediate to advanced
384 pages
9h 54m
English
var x=5; var y="5"; var resultA = x==y; //Evaluates to true var result = x===y; //Evaluates to false
JavaScript uses the standard ==, !=, >, <, >=, <= operators to compare two objects. It also includes the === and !== operators that are type sensitive. For example, 1=="1" evaluates to true, whereas 1==="1" does not because the first is a numerical type and the second is a string type.
Read now
Unlock full access