We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e9cf6 commit 66c633fCopy full SHA for 66c633f
Chapter 4/Flyweight.js
@@ -3,10 +3,11 @@ var Westros;
3
(function (Army) {
4
var Soldier = (function () {
5
function Soldier() {
6
- this.Health = 10;
7
- this.FightingAbility = 5;
8
- this.Hunger = 0;
9
- }
+ }
+ Soldier.prototype.Health = 10;
+ Soldier.prototype.FightingAbility = 5;
+ Soldier.prototype.Hunger = 0;
10
+
11
return Soldier;
12
})();
13
Army.Soldier = Soldier;
0 commit comments