Wes June’s Dev NotesAboutAbout
GitHubGitHub (opens in a new tab) (opens in a new tab)
  • Introduction
    • Centering in CSS
    • Containing block
    • Controlling inheritance
    • CSS selectors
    • Formatting contexts
    • Media queries
    • min(), max(), and clamp()
    • Shorthand properties
    • Stacking contexts
    • inert
    • <input type="file">
    • Semantic HTML tags
    • Copying array methods and mutating array methods
    • Differences between var, let, and const
    • How to check if a variable is an array?
    • How to check if a variable is an object?
    • Differences between type aliases and interfaces
    • The maximum delay value for setTimeout
    • The maximum and minimum values for the CSS z-index property
  • Introduction
  • About
    • Centering in CSS
    • Containing block
    • Controlling inheritance
    • CSS selectors
    • Formatting contexts
    • Media queries
    • min(), max(), and clamp()
    • Shorthand properties
    • Stacking contexts
    • inert
    • <input type="file">
    • Semantic HTML tags
    • Copying array methods and mutating array methods
    • Differences between var, let, and const
      • References
    • How to check if a variable is an array?
    • How to check if a variable is an object?
    • Differences between type aliases and interfaces
    • The maximum delay value for setTimeout
    • The maximum and minimum values for the CSS z-index property

On This Page

  • References
JavaScript
Differences between var, let, and const

Differences between var, let, and const

Keywordvarletconst
ScopeFunctionBlockBlock
Redeclared✅❌❌
Reassigned✅✅❌
Hoisting✅⚠️⚠️

References

  • var vs let vs const in JavaScript - UI.dev (opens in a new tab)
  • Difference between var, let, and const keyword in JavaScript (opens in a new tab)
Copying array methods and mutating array methodsHow to check if a variable is an array?

© 2023 Wes June. Built with Nextra.