Comments
-
cheesewhisk3rs 4 days ago
maybe because: only an empty string returns false, any non-empty string is equivalent to true -
soupel 4 days ago
hmm -
soupel 4 days ago
Darflen election starts in three weeks :-)
-
-
Boolean seems to convert every falsy values to false and every truthy value to true
(converts things into a boolean)
so i guess in javascript 'false' is true because non-empty strings are considered as truthy and not falsy