a+b=?

Report a typo

Write down the result value of the following promise:

const a = 25;
const b = 13;
const c = 37;

new Promise(function(resolve, reject) {
  const value = a + b - c;
  if (value > 0) {
    resolve(value);
  } else {
    reject(-value);
  }
  console.log(2);
});
Enter a number
___

Create a free account to access the full topic