Javascript – Lack of Rejection Handler still changes the State of the returned Promise
Doubt: According to MDN docs, then() and catch() returns a Pending Promise Immediately and if the handler functions doesn't return anything, the returned promise becomes fulfilled with undefined value. So, if current Promise is P0, then() (attached to P0) returns…