Created
June 28, 2018 13:43
-
-
Save ssougnez/a88bb44888d1f7aacec781a8e6bf12db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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