• nodiet@feddit.de
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years 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
      ·
      2 years ago

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