Tuesday, December 6, 2016

JavaScript Operator === vs == - Q&A

Question:

What is the difference between the '==' operator to '===' ?

Answer


While the '==' operator compare value only (if needed, making some type conversion on the way) the '===' operator compare both type and value .

No comments:

Post a Comment