Home > front end >  (es6 introduction) let can only appear on the top of the scope is what mean
(es6 introduction) let can only appear on the top of the scope is what mean

Time:10-11

CodePudding user response:

Is the let not as if or for a child of the statement, sub statement is certainly not at the top of scope,

CodePudding user response:

reference 1/f, the sky wave response:
is the let not as if or for a child of the statement, sub statement is certainly not at the top of scope,
I still don't feel very understand, that how to judge whether a statement on the top floor? {var x=1; Let y=2} this is let is in the scope of the top floor, right?

CodePudding user response:

reference light through the forest on the second floor response:
Quote: reference 1/f, the sky wave response:

Is the let not as if or for a child of the statement, sub statement is certainly not at the top of scope,
I still don't feel very understand, that how to judge whether a statement on the top floor? {var x=1; Let y=2} this is let is in the scope of the top floor, right?
this is at the top, so to understand, let either put in braces, or placed in the global scope, all other things being wrong,
  • Related