This repository has been archived on 2026-03-31. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
jsmag/events/listing_1.js
Ryan McGrath 5ed915c6c5 Initial
2011-02-18 04:25:06 -05:00

8 lines
114 B
JavaScript

var x = 1;
var foo = function(callbackfn) {
return callbackfn(x * 2);
};
foo(function(x) {
console.log(x);
});