Preslav's Thoughts and Ramblings

c++

  • 22 July 2012

    C/C++ Tips for JavaScript Geeks: The Function Pointer

    In JavaScript, the function is a first class object. This allows us to pass functions as parameters to other functions, and execute them. Very much like: var p = function() { console.log("Executing the callback function"); } var c = function(callBack) { console.log("Executing the wrapper function"); } c(p); C/C++ does...