I have a class foo, can I access its public method bar with out initializing fooObj
var foo = function(){
this.bar = function(){
console.log("I am bar");
}
}
I know I can access bar like
var fooObj = new foo();
fooObj.bar();
In other object oriented language like javeif I declare bar static I can access it with class name like foo.bar