• Downcount@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    7 months ago

    It would have print if it was previously declared as function.

    Also, js is as dirty as you want it to be. Keywords are indeed not necessary for declaring variables.

    • kautau@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      7 months ago

      JavaScript is the language of the assassins, with its infinitely modifiable prototypical setup

      Nothing is true

      true !== 1

      true

      true + true + true === 3

      true

      Everything is permitted

      []+[]

      ''