Declare a promise variable by putting the lines in the correct order:
Introduction to Promises
Make a promise
Report a typo
Put the items in the correct order
resolve(value);
} });
if (valueIsCorrect) {
reject(error);
let promise = new Promise(function(resolve, reject) {
} else {
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.