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
// Starting | |
function myFunction(paramA, callback){ | |
console.log("I'm the old function with paramA and callback."); | |
callback(paramA); | |
} | |
// test | |
myFunction("1", function(a){console.log("I should be the parameter: "+a)}); | |
// returns | |
// I'm the old function with paramA and callback. | |
// I should be the parameter: 10 |