+ 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-61d4ce5a121a • https://code.sololearn.com/W3CwqAGgJqRV/?ref=app • https://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