We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
healthLevel
Score
1 parent 10aa4f7 commit eda5940Copy full SHA for eda5940
src/index.js
@@ -11,11 +11,11 @@ export class Scorer {
11
12
execute() {
13
this._result = 0;
14
- let healthLevel = 0;
+ this._healthLevel = 0;
15
let highMedicalRiskFlag = false;
16
17
if (this._medicalExam.isSmoker) {
18
- healthLevel += 10;
+ this._healthLevel += 10;
19
highMedicalRiskFlag = true;
20
}
21
@@ -26,7 +26,7 @@ export class Scorer {
26
27
28
// lots more code like this
29
- this._result -= Math.max(healthLevel - 5, 0);
+ this._result -= Math.max(this._healthLevel - 5, 0);
30
31
return this._result;
32
0 commit comments