Last active
July 4, 2018 15:01
-
-
Save luojiyin1987/9edf650507d96e12b1ebbd814a614d1d to your computer and use it in GitHub Desktop.
#recurrence #callback
This file contains hidden or 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
| let syncFn = x => { | |
| console.log("x is " + x); | |
| if (x < 10) { | |
| syncFn(x + 1); | |
| console.log("x is " + x); | |
| } | |
| } | |
| console.log('=== start sync ==='); | |
| syncFn(2); | |
| console.log('=== end sync ==='); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment