973 reputation
138
bio website dagtuts.com
location United States
age 30
visits member for 2 years, 11 months
seen Jul 28 at 17:16

var experience = 'novice'; var reason = 'It pays the bills.'; var Coding = function(reason){ this.reason = reason; }

    Coding.prototype.getProfitable = function(){
         return this.reason + '  And now I can do it for fun.';
    }
    var someday = new Coding(reason);
    alert(someday.getProfitable());

10
× 8
4
9
× 5
3
× 5
8
× 6
2
× 6
5
× 4
2
× 3
4
× 2
2
× 2

106 Votes Cast

all time   by type  
105 up 47 question
1 down 59 answer