cross-posted from: https://lemmy.ml/post/31949768

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

you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 1 year ago* (last edited 1 year 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.

  • source
  • parent