Skip to content

Commit b3a37f8

Browse files
committed
Refactor : drop unused var highScore .
1 parent 76e71eb commit b3a37f8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scratch/chapter4/bubble.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
69, 64, 66, 55, 52, 61,
1111
46, 31, 57, 52, 44, 18,
1212
41, 53, 55, 61, 51, 44];
13-
14-
var highScore = getHighScore(scores);
1513

1614
printScores(scores);
1715

1816
console.log("Quantity Bubbles tests: " + scores.length);
19-
console.log("Highest bubble score: " + highScore);
17+
console.log("Highest bubble score: " + getHighScore(scores) );
2018
console.log("Highest scoring solutions: " + bestSolutions(scores) );
2119

2220

0 commit comments

Comments
 (0)