Skip to content

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

EcmaScript 7 Basic Guide

A common project made by Better Code developers.

ES7: Async and Await

Experimental new features

ArrayBuffer.transfer
var foo = new ArrayBuffer(10);
var pip = ArrayBuffer.transfer(foo, 12);
A great example of async/await:
```js
async function asyncFun () {
var value = await Promise
.resolve(1)
.then(x => x * 3)
.then(x => x + 5)
.then(x => x / 2);
return value;
}
asyncFun().then(x => console.log(`x: ${x}`));

Resources

Understanding JavaScript’s async await

About

Another awesome project created using Better Code

Resources

Stars

1 star

Watchers

5 watching

Forks

Releases

Packages

Contributors