Convert a String to a Boolean

You learned in the truthy/falsy lesson that any value can be passed to Boolean(). Here we declare the variable greeting with a non-empty string. Assign result the boolean version of greeting so the log prints true.
JavaScript
Console