the next 3 lines throws an error:
variable=3;
console.log(variable);
let variable;
but I thought that the hoisting means that the 3 lines will be:
let variable;
variable=3;
console.log(variable);
I thought that the declaration moves up to the top of the scope...
thanks a lot