Using strict equality in the JS example for City Quiz (#6373)

Co-authored-by: Nikhil Gupta <nikhil.gupta5667@gmai.com>
This commit is contained in:
Nikhil Gupta
2023-10-26 11:18:43 +05:30
committed by GitHub
parent a272f0cf23
commit 76c1bde5c7

View File

@@ -84,7 +84,7 @@ function submitForm(answer) {
// Pretend it's hitting the network.
return new Promise((resolve, reject) => {
setTimeout(() => {
if (answer.toLowerCase() == 'istanbul') {
if (answer.toLowerCase() === 'istanbul') {
resolve();
} else {
reject(new Error('Good guess but a wrong answer. Try again!'));