Payal Patel

Results 1 comments of Payal Patel

var Player = function(num) { this.num = num; }; Object.defineProperty(Player.prototype, 'number', { get: function() { return this.num+1; }, set: function(value) { this.num = value*10; } }); var p = new...