• flying_sheep@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    8 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())
    • dejected_warp_core@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 days ago

      I totally get that: use the right tools and you’ll be okay. This applies to many technologies in this space.

      With respect, I still take this advice like hearing “look out for rattlesnakes if you’re hiking there.” It might be safer to just hike where there are no rattlesnakes, instead.