var vs. let vs. const
JavaScript provides in total three keywordsβvar, let, const βto be able to declare variables. This post covers difference between three keywords in detail.
Cheat Sheet
var
let
const
scope
global scope/
function scope
block scope
block scope
beginning of a ...
statement
declaration
declaration
declaration w/o value initialization
π’
(default