@anonymous/

WelloffSeveralPlatypus

ES6

No description

fork
loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const p = new Promise(
    // this is called the "executor"
    (resolve, reject) => {
        console.log(1);
        resolve(2);
        console.log(3);
    }
);

console.log(4);

p.then(
    // this is called the success handler
    result => console.log(result)
);

setTimeout(() => console.log(5), 0);

console.log(6);
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie