A collaborative website about the latest JavaScript features and tools.
Send a Post

*using github

Thu Aug 28 2014 01:58:23 GMT+0000 (UTC)

你需要知道的块级作用域 - let


在大多数语言中,如Python,他有两个作用域:局部 和 全局。如下,变量定义在代码开头部分则为全局变量,在函数里面声明变量则为局部变量。

Jaydson Gomes
Posted by Jaydson Gomes
icon testemonials


"ES6 improves developer ergonomics massively and jsrocks.org will help you grok the benefit you can reap and how to get it today. Love it."

image testemonial

Paul Irish


"JS Rocks is a brilliant initiative, if you're looking for relevant content about what's coming next for the JavaScript language, here's the place to find."

image testemonial

Zeno Rocha