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

*using github

Tue Sep 15 2015 04:06:02 GMT+0000 (UTC)

JavaScript中的 iterables and iterators

ECMAScript 2015 (ES6) 介绍了两个新的概念,它们密切相关: iterables and iterators.
希望你在阅读了这篇文章后,会了解到这两个概念的重要性,并且能在日常开发中使用它们。

Fabrício S. Matté
Posted by Fabrício S. Matté
Thu Aug 28 2014 01:58:23 GMT+0000 (UTC)

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

  • 译@hacke2

变量声明在任何语言中都是非常基础的东西,理解变量在作用域下如何工作是非常重要的事情。

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

Jaydson Gomes
Posted by Jaydson Gomes
icon testemonials

TESTIMONIALS

"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

Google

"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

Liferay