Assume we have a condition, where a String "true"
is compared to Boolean true
. It returns false
, though true == '1'
returns true
. If you do true == !!"true"
, this will return true
, so it should mean, that since the beginning "true"
was true
. Is there any specific logic, that I am missing, or it just works with string representation of 0
and 1
?
console.log(true == 'true')