Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function pow2(number, func) {
number = number ** 2; // Say it's asynchronous
func(number);
}
function pow3(number, func) {
number = number ** 3; // Say it's asynchronous
func(number);
}
function pow4(number, func) {
number = number ** 4; // Say it's asynchronous
func(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.