The solution of this task about error handling with promise is wrong. The answer should be YES, because regardless of setTimeout, the executor still throws the error object to the catch method, so it still alert the error (i.e the .catch() is triggered).
The solution of this task about error handling with promise is wrong. The answer should be YES, because regardless of setTimeout, the executor still throws the error object to the catch method, so it still alert the error (i.e the
.catch()
is triggered).