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.
2 parents 7174eec + 2d09418 commit 7fd06f9Copy full SHA for 7fd06f9
docs/labs/checker.js
@@ -195,7 +195,7 @@ function runCheck() {
195
let result = calcOneMatch(attempt, i, correctRe);
196
if (!result) isCorrect = false;
197
document.getElementById(`attempt${i}`).style.backgroundColor =
198
- isCorrect ? 'lightgreen' : 'yellow';
+ result ? 'lightgreen' : 'yellow';
199
};
200
// isCorrect is now true only if everything matched
201
let oldGrade = document.getElementById('grade').innerHTML;
0 commit comments