Created
October 24, 2011 02:12
-
-
Save jperrine/1308232 to your computer and use it in GitHub Desktop.
note js
This file contains 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
var Note = function (name) { | |
var someMethod = function() {}; | |
return { | |
publicMethod: someMethod, | |
... | |
} | |
}; | |
var note1 = new Note('whatever'); | |
var note2 = new Note('something'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment