I am reading YDNJS: scope and closures, And in chapter 4 which talks about hoisting it says that Function declarations that appear inside of
var a = 6; { console.log(a) let a =55 } when i execute this snippet I get following as error message: ReferenceError: Cannot access 'a' before initiali
The below code gives an output of undefined. I was of the impression that all variable and function declarations are hoisted to the top of their scope and so b