Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function pow2(number) {
return new Promise((resolve, reject) => {
number = number ** 2; // Say it's asynchronous
resolve(number);
});
}
function pow3(number) {
return new Promise((resolve, reject) => {
number = number ** 3; // Say it's asynchronous
resolve(number);
});
}
function pow4(number) {
return new Promise((resolve, reject) => {
number = number ** 4; // Say it's asynchronous
resolve(number);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.