Created
March 18, 2014 11:08
-
-
Save melnik88/9618006 to your computer and use it in GitHub Desktop.
create single class
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 someClass = function(){ | |
function init(){ | |
console.log('someClass is created') | |
} | |
this.init = init; | |
} | |
var myclock = new someClass(); | |
myclock.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment