JavaScript Promise
어려움
javascript
문제 설명
다음 코드의 출력 결과는?
```javascript
Promise.resolve(1)
.then(x => x + 1)
.then(x => { throw new Error("Error!") })
.then(x => console.log(x))
.catch(err => console.log(err.message))
.then(() => console.log("Done"));
```