Randy_rs

Results 4 comments of Randy_rs

第一个 script : ``` console.log(fun) console.log(person) ``` 当前全局作用域中并没有定义 **fun** 和 **person**,那么执行 `console.log(fun)` 会导致报错提示 fun 没有定义,并且会阻断代码继续执行,也就不会执行 `console.log(person)` 。 第二个 script: ``` console.log(person) // (1) console.log(fun) // (2) var person = "Eric";...

文中的执行上下文顺序图,貌似不正确吧。** checkscope** 函数的执行上下文应该出栈后,**f** 函数的执行上下文才会入栈吧,建议修改一下。

@duanzheng 若 b 里直接访问 a ,即写为 `a = a + r`,则最后**then**打印`'a' 11`,因为会先执行 `a++`。我猜他应该是为了保持最后的打印结果是 `'a' 10`,所以才使用了一个变量缓存最初**a**的值吧。个人见解

> Hey @Randysheng thanks for the feedback, we could add it to the `package.json`, would you be interested in creating the PR? https://www.geeksforgeeks.org/how-to-define-the-required-node-js-version-in-package-json/ Sure. I forget the `package.json`