diff --git a/docs/JavaScriptEnvironment.md b/docs/JavaScriptEnvironment.md index a3035fe778ccd6..dcd866156c1507 100644 --- a/docs/JavaScriptEnvironment.md +++ b/docs/JavaScriptEnvironment.md @@ -31,8 +31,10 @@ ES5 ES6 * [Arrow functions](http://babeljs.io/docs/learn-es2015/#arrows): ` this.setState({pressed: true})}` +* [Block scoping](https://babeljs.io/docs/learn-es2015/#let-const): `let greeting = 'hi';` * [Call spread](http://babeljs.io/docs/learn-es2015/#default-rest-spread): `Math.max(...array);` * [Classes](http://babeljs.io/docs/learn-es2015/#classes): `class C extends React.Component { render() { return ; } }` +* [Constants](https://babeljs.io/docs/learn-es2015/#let-const): `const answer = 42;` * [Destructuring](http://babeljs.io/docs/learn-es2015/#destructuring): `var {isActive, style} = this.props;` * [Modules](http://babeljs.io/docs/learn-es2015/#modules): `import React, { Component } from 'react-native';` * [Computed Properties](http://babeljs.io/docs/learn-es2015/#enhanced-object-literals): `var key = 'abc'; var obj = {[key]: 10};` @@ -45,3 +47,4 @@ ES7 * [Object Spread](https://github.com/sebmarkbage/ecmascript-rest-spread): `var extended = { ...obj, a: 10 };` * [Function Trailing Comma](https://github.com/jeffmo/es-trailing-function-commas): `function f(a, b, c,) { }` +* [Async Functions](https://github.com/tc39/ecmascript-asyncawait): `async function doStuffAsync() { const foo = await doOtherStuffAsync(); }`;