Skip to content

Instantly share code, notes, and snippets.

@marlun
Created January 18, 2012 16:46
Show Gist options
  • Select an option

  • Save marlun/1633965 to your computer and use it in GitHub Desktop.

Select an option

Save marlun/1633965 to your computer and use it in GitHub Desktop.
function Test() {
// Not much
}
Test.prototype.say = function(msg) {
setTimeout(function() {
console.log(msg);
}, 2000);
};
var t = new Test();
t.say("hello");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment