Initial
This commit is contained in:
commit
5ed915c6c5
8 changed files with 329 additions and 0 deletions
8
events/listing_1.js
Normal file
8
events/listing_1.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
var x = 1;
|
||||
var foo = function(callbackfn) {
|
||||
return callbackfn(x * 2);
|
||||
};
|
||||
|
||||
foo(function(x) {
|
||||
console.log(x);
|
||||
});
|
||||
Reference in a new issue