Skip to main content
7 events
when toggle format what by license comment
May 23, 2017 at 12:38 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Nov 24, 2016 at 1:58 comment added user4639281 (2/2) This is incorrect because in all circumstances, the variable will not be accessible through the scope object if declared using let. See { var hello = 'world'; let foo = 'bar'; console.log(this.hello, this.foo) /* "world", undefined */}. So instead of At the top level, variables declared using let don't become global variables. you should have written Variables declared using let will not be added to the scope object
Nov 24, 2016 at 1:56 comment added user4639281 (1/2) Just a note on your answer that it is also a bit misleading, can't comment there because it is locked. At the top level, variables declared using let don't become global variables. What you mean is "At the top level, variables declared using let don't get added to the scope object". They are global variables, as they are variables which are available globally, you just cannot access them through the scope object. However, this is still misleading, as it is implying that, at any other level, you can expect a different behavior.
Nov 23, 2016 at 23:19 comment added Robert Harvey Mod You didn't wait for feedback; you just did it.
Nov 23, 2016 at 23:16 comment added Michał Perłakowski @RobertHarvey I thought that posting a question on Meta is the right way to get community feedback. Besides, the fact that I have a gold JavaScript badge might indicate that I have a good knowledge in that topic and my Q&A is indeed superior.
Nov 23, 2016 at 22:56 comment added Robert Harvey Mod Mighty convenient, this meta thing is, isn't it? Allowing you to publicize your new, "clearly superior" post over one that has thousands of votes and hundreds of thousands of views, without even waiting for feedback from the community. I'm not impressed.
Nov 23, 2016 at 22:53 history answered Michał Perłakowski CC BY-SA 3.0