Javascript – why throw inside of an setTimeout, located inside a promise, doesn't change state and result of the output promise?
I know existence of a throw inside of a promise, change the state of that specific promise to rejected and the result will be the error message, but when I type this throw inside of a setTimeout located inside of…