Made with KolourPaint and screenshots from Kate (with the GitHub theme).

    • Lemminary@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      Ah, but this is JS, so there are three options! And they all function entirely differently. And your assumptions don’t apply, either. :D

    • Hotzilla@sopuli.xyz
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      2 days ago

      True, but var and let are not same in js, so there is three.

      if(true) {

      var a = "dumdum"

      }

      console.log(a)

      Is valid and functioning javascript. With let it is not.