Last active
February 7, 2016 21:00
-
-
Save mshustov/22f74d8ee5ae75863e78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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