When checking for a String value I use '=='. But I have seen instances where '===' is used. For example, instead of
if("true" == "true"){
alert('true');
}
this is used :
if("true" === "true"){
alert('true');
}
What is the reasoning behind this ? Both use cases seem to work as expected.