If I have the following code in ES6, where "then" handlers don't return new promise, will both "then" handlers be called synchronously or each new "then" handler is called asynchronously one after another?
Promise.resolve()
.then(() => {console.log(1)})
.then(() => {console.log(2)})