You can see the details for the conventions of variable names / methods here .
. ( ), . , (, new) .
:
Class.foo = function () {
};
var blah = new Class();
blah.foo();
Class.foo();
~ ( ), function. , .
:
function Class() {
function inner() {
}
this.accessInner = inner;
}
blah = new Class();
blah.inner();
Class.inner();
blah.accessInner();