4 ms·
var getJSON = function(callback) { // did async work to get the JSON data and now I want to call the callback function, but is it there? callback && callb
by berzniz 12y ago
var getJSON = function(callback) {
// did async work to get the JSON data and now I want to call the callback function, but is it there?
callback && callback(data);
};
getJSON(); // See how I don't care about the result