Skip to content

Commit d45bf12

Browse files
authored
Update script.js
1 parent 33f9590 commit d45bf12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/script.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ function previousQuestion() {
111111
if (currentQuestion > 0 ) {
112112
currentQuestion--;
113113
showQuestion(currentQuestion);
114+
} else if (currentQuestion === -1){
115+
currentQuestion = Questions.length - 1;
116+
showQuestion(currentQuestion);
114117
}
115118
}
116119

0 commit comments

Comments
 (0)