https://microcumul.us

Just chilling

  • 2 Posts
  • 37 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle














  • andrew@lemmy.stuart.funtoProgrammer Humor@lemmy.mlGender.js
    link
    fedilink
    English
    arrow-up
    7
    ·
    9 months ago

    var isn’t global unless it’s not inside a function. var is just function scoped, with declaration auto hoisted to the beginning of the function. let is a little more intuitive since you can’t refer to it before it’s been declared and has block scope rather than function scope.