The difference | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

The difference

Hi im learning javascript and i want to know what is the difference between == and ===. And != and !==.

28th Jun 2020, 5:22 AM
Gab
Gab - avatar
3 Answers
+ 15
'==' checks equivalency while ignoring type '===' checks for exact equivalency, including type • The Legend of JavaScript Equality Operator — https://dmitripavlutin.com/the-legend-of-javascript-equality-operator/ • Double Equals vs. Triple Equals — https://codeburst.io/javascript-double-equals-vs-triple-equals-61d4ce5a121ahttps://code.sololearn.com/W3CwqAGgJqRV/?ref=apphttps://www.sololearn.com/learn/JavaScript/1132/
28th Jun 2020, 6:46 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 5
Gab here is a quick reference to JavaScript Comparison and Logical Operators https://www.w3schools.com/js/js_comparisons.asp
28th Jun 2020, 5:33 AM
BroFar
BroFar - avatar
+ 2
Thanks
28th Jun 2020, 6:51 AM
Gab
Gab - avatar