I understand that an empty string is falsy in javascript and a not-empty string is truthy in javascript.
However, why is \'false\' truthy in javascript,
\'false\'
The value of a non-empty string is always true.
Boolean(false) returns false
Boolean(false)
Boolean('false') returns true
Boolean('false')