While solving one issue, I notice following condition
if("String" == ["String"]) {
console.log("Valid");
}
else
{
console.log("Invalid");
}
I thought that it should log "Invalid", since first value is string and second value is object of string. But to my surprise, it is logging "Valid". Any specific reason, why this condition is true.