Skip to content

Instantly share code, notes, and snippets.

@mshustov
Last active February 7, 2016 21:00
Show Gist options
  • Save mshustov/22f74d8ee5ae75863e78 to your computer and use it in GitHub Desktop.
Save mshustov/22f74d8ee5ae75863e78 to your computer and use it in GitHub Desktop.
function(fn, cb){
var a = fn(cb);
var b;
setTimeout(function(){
b = fn(cb);
}, 100);
}
function Man(name, age){
this.name = name;
this.age = age;
}
Man.prototype.getName = function(){
return this.name;
}
Man.prototype.getFullData = function(){
return {
name: this.getName(),
age: this.age
}
}
function(a,b,c){
return a(b(c));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment