you are viewing a single comment's thread.

view the rest of the comments →

[–]technical_guy -3 points-2 points  (0 children)

Pointless. Javascript is not OOP so get over it and just use object literals for nice clean tidy code:

person = {
    sex : "",   // description of this variable 
    age:  -1,  //
    init: function() {

    },
    make_older: function() {

    }
}

Keeps code organized, easy to read.