'==' vs '===' in Javascript
The most straightforward answer would be: “The triple equals operator (‘===’) compares both type and value, while the double equals (‘==’) only compares value.”
This begs a practical example:
console.log(1 == 1);
//true
console.log(1 =='1');
//true
...
akashrj.hashnode.dev2 min read