Does using let and const really prevent hoisting?
While going through ES6
, I came to know about let
and const
keywords and it was mentioned there that with these keywords we no longer have to worry about hoisting. This made me curious to know how exactly do they do that.