ES6: link more headlines
This commit is contained in:
parent
c22f03dba0
commit
5e89a22cdc
6
es6.md
6
es6.md
|
@ -22,7 +22,7 @@ Promise.reject(/*...*/)
|
||||||
Promise.resolve(/*...*/)
|
Promise.resolve(/*...*/)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Block scoping
|
### [Block scoping](http://babeljs.io/docs/learn-es6/#let-const)
|
||||||
`let` is the new `var`.
|
`let` is the new `var`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@ -101,7 +101,7 @@ App = {
|
||||||
Available via the [Babel] transpiler.
|
Available via the [Babel] transpiler.
|
||||||
{:.brief-intro.center.top-space-0}
|
{:.brief-intro.center.top-space-0}
|
||||||
|
|
||||||
### Module imports
|
### [Module imports](http://babeljs.io/docs/learn-es6/#modules)
|
||||||
`import` is the new `require()`.
|
`import` is the new `require()`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@ -118,7 +118,7 @@ import { indent } from 'helpers';
|
||||||
import { indentSpaces as indent } from 'helpers';
|
import { indentSpaces as indent } from 'helpers';
|
||||||
```
|
```
|
||||||
|
|
||||||
### Module exports
|
### [Module exports](http://babeljs.io/docs/learn-es6/#modules)
|
||||||
`export` is the new `module.exports =`.
|
`export` is the new `module.exports =`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
Loading…
Reference in New Issue