https://codesandbox.io/embed/oopvk114p9
最初に読んだ
https://medium.freecodecamp.org/oh-yes-async-await-f54e5a079fc1
次に読んだ
https://tutorialzine.com/2017/07/javascript-async-await-explained
図示
http://nikgrozev.com/2017/10/01/async-await/
const async1 = async () => {return await returnPromiseFunction()}
const async2 = async () => {console.log(await async1())}
async と arrow function の前につける。そのファンクションの中で await を使える。await は promise オブジェクトが返されるまで、待つ。return value は return Promise.resolve(value) と同じ。つまり promise オブジェクトを返している。