[enter image description here][1]testing truthy value to false
What am i missing here..
how can a truthy value campared to false yields true ? something wrong in the code or is that a bug? Can someone please explain that ?
[enter image description here][1]testing truthy value to false
What am i missing here..
how can a truthy value campared to false yields true ? something wrong in the code or is that a bug? Can someone please explain that ?
Because you use lose comparison ==
instead of strict comparison ===
, so your emptyString
is converted to boolean to be comparable against false