Company where i'm working right now they are writing sth like this all the time ...
function art() {
};
art.prototype = { sth functions, var's }
or
function art() {
};
art.prototype = (function () {
return{
sth functions, vars
}
})();
what is a purpose of this habits, that is changing something?
classto javascript.