Return value of Promise’s resolve/reject functions

The return value of the promise constructor is ignored.

The resolve function also returns undefined.

This was first specified in the promise constructor spec and later in the ES2015 (ES6) language specification.

Leave a Comment