Skip to content

Commit 76c1bde

Browse files
jerrykodesNikhil Gupta
and
Nikhil Gupta
authored
Using strict equality in the JS example for City Quiz (#6373)
Co-authored-by: Nikhil Gupta <nikhil.gupta5667@gmai.com>
1 parent a272f0c commit 76c1bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/reacting-to-input-with-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function submitForm(answer) {
8484
// Pretend it's hitting the network.
8585
return new Promise((resolve, reject) => {
8686
setTimeout(() => {
87-
if (answer.toLowerCase() == 'istanbul') {
87+
if (answer.toLowerCase() === 'istanbul') {
8888
resolve();
8989
} else {
9090
reject(new Error('Good guess but a wrong answer. Try again!'));

0 commit comments

Comments
 (0)