Note that ‘===’ checks for both the type and value, and is a stricter way to check, whereas ‘==’ does the type conversion of the operands and checks only for the values. I have a grand example to demonstrate this:
var x = document.formName.fieldName.value; // let it be 2
console.log(x==2); // returns true
console.log(x===2); // returns false, because x is a string ’2'
x = parseInt(x,10); // turn x into an int
console.log(x==2); // again returns true
console.log(x===2); // returns true, because x is now an integer
I hope the example would be more than enough to clarify. You can very well post in your queries as comments to this post.