Make a promise

Report a typo

Declare a promise variable by putting the lines in the correct order:

Put the items in the correct order
resolve(value);
} });
if (valueIsCorrect) {
reject(error);
let promise = new Promise(function(resolve, reject) {
} else {
___

Create a free account to access the full topic