Dmitriy Nadrshin
1 min readDec 3, 2017

--

let and const are not hoisted” — why?

it will be not defined but instantiated

let a = 1;if(true) {
console.log(a) /// "ReferenceError: a is not defined
let a = 2;
}

--

--