진성욱

Add Assignment02

1 +const doSomethingAsync = () => {
2 + return new Promise(resolve => {
3 + setTimeout(() => resolve('I did something'), 3000)
4 + })
5 +}
6 +
7 +// doSomething 함수를 async await 형태로 변경하시오
8 +const doSomething = () => {
9 + doSomethingAsync().then( a => console.log(a))
10 +}
11 +
12 +console.log('Before')
13 +doSomething()
14 +console.log('After')