• towerful@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    4 months ago

    Truthy/falsey refers to how types are converted to booleans.
    So an empty string is falsey. It’s not false, but when compared as a Boolean it converts to false.
    A 0 is falsey, any other number is truthy.