• nodiet@feddit.de
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    As someone who only had very peripheral contact with JavaScript I can’t tell if this is real and that is really the beauty (/s) of this language

    • amki@feddit.de
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      It also works for booleans: If you want variable x to become boolean just negate it twice: !!b