Skip to content

Commit 1a4b3b0

Browse files
fix: tech quiz from not working
fixes #21 @vrindavan you forgot to include 5 lines of code in the game.js of the Tech Quiz and this issue happend lol. But, I can't blame you cause you had to edit so many JS files, I'm making a issue to format the files properly, so it doesn't become difficult for me or the contributors of this project.
1 parent 3c2e0fe commit 1a4b3b0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tech/game/game.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,10 @@ incrementScore = (num) => {
124124
scoreText.innerText = score;
125125
};
126126

127+
// function to deduct 100 points for wrong answer
128+
decrementScore = (num) => {
129+
score -= num;
130+
scoreText.innerText = score;
131+
};
132+
127133
startGame();

0 commit comments

Comments
 (0)