Javascript : == and === operator ?
Motivation
Learning the basics of the language
== --> only compares values
=== --> compares values and datatype , if both same then only true
Example
var x=2;
var y="2";
console.log(x==y); //true
console.log(x===y); //false
hashcodehub.hashnode.dev1 min read