Skip to content

Commit

Permalink
28.3.callback
Browse files Browse the repository at this point in the history
  • Loading branch information
egoing committed Jun 3, 2018
1 parent 9b2aefb commit 9cb0b1d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions syntax/callback.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
function a(){
console.log('A');
}
*/
var a = function(){
console.log('A');
}


function slowfunc(callback){
callback();
}

slowfunc(a);

0 comments on commit 9cb0b1d

Please sign in to comment.