Last active
October 19, 2019 07:33
-
-
Save kikill95/14e5bf101c1b77babc8b431c8e498d9d to your computer and use it in GitHub Desktop.
perform.js
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
//by Denys Pysmennyi | |
function perform() { | |
//TODO implement | |
} | |
perform(20, function(value) { | |
console.log(value) // 20 | |
var param = 1; | |
console.log(param); // 1 | |
return param; | |
}) | |
.then('a', 'b', function(a, b, param) { | |
console.log(++param); // 2 | |
return param; | |
}) | |
.then(function(param) { // param === 2 | |
console.log(++param); // 3 | |
return param; | |
}); |
Author
kikill95
commented
Oct 17, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment