• flying_sheep@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    13 days ago

    Just use a formatter. It’ll show you that the second one is two statements:

    1. {} (the empty block)
    2. +[] coerce an empty array to a number: new Number(new Array())