Skip to content

Instantly share code, notes, and snippets.

@emreavcilar
Created November 23, 2021 09:50
Show Gist options
  • Save emreavcilar/35659b54e898eebd99bbddce5963a9e8 to your computer and use it in GitHub Desktop.
Save emreavcilar/35659b54e898eebd99bbddce5963a9e8 to your computer and use it in GitHub Desktop.
var vs let cs const in js
https://www.linkedin.com/posts/milos--milovanovic_frontend-javascript-activity-6868846885734555649-Wo8a
var let const
Stored in Global Scope YES NO NO
Function Scope YES YES YES
Block Scope NO YES YES
Can Be Reassigned? YES YES NO
Can Be Redeclared? YES NO NO
Can Be Hoisted? YES NO NO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment