I\'ve been trying to do javascript for sometime now, but i want it to be \"object-orientated\" so I\'m trying to create different javascript classes in different files and try t
class methods should be defined via prototype so they receive 'this' reference, like that:
Person.prototype.getGender = function() { return this.gender; };