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