1.4.1.Callback function
function two(callback) { var count1 = 1; (callback && typeof(callback) === "function") && callback(); console.log(count1); } function three() { console.log('three run'); } two(function() { console.log('callback run'); }); two(three);
Last updated
