Truthy & Falsy Values
What will be the result of Boolean('')?
The result of Boolean('') is false. An empty string is one of the six falsy values in JavaScript. When the Boolean() function is used for explicit conversion to a boolean, it returns false for all falsy values (false, 0, '', null, undefined, and NaN) and true for all other values. This is the same conversion that happens implicitly in conditional contexts, such as if statements or the condition of a ternary operator. This is why you can use if(someString) in JavaScript to check if a string is non-empty.