Douglas.Sesar's user avatar
Douglas.Sesar's user avatar
Douglas.Sesar's user avatar
Douglas.Sesar
  • Member for 11 years, 7 months
  • Last seen more than a month ago
Stats
1,367
reputation
218k
reached
76
answers
1
question
Loading…
About

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());
1
gold badge
9
silver badges
13
bronze badges
19
Score
6
Posts
8
Posts %
18
Score
10
Posts
13
Posts %
13
Score
6
Posts
8
Posts %
7
Score
5
Posts
6
Posts %
5
Score
6
Posts
8
Posts %
4
Score
7
Posts
9
Posts %
Top posts
View all questions and answers