Skip to content

Instantly share code, notes, and snippets.

@hay hay/ex2.js
Created Jan 13, 2013

Embed
What would you like to do?
var Module = Stapes.subclass({
constructor : function(name) {
this.name = name;
},
sayName : function() {
console.log(this.name);
}
});
var module = new Module('Emmylou');
module.sayName(); // 'Emmylou'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.