From d19410e37180a7b920f01bbe7d1c3110b7918690 Mon Sep 17 00:00:00 2001 From: Nikhil Gupta Date: Tue, 24 Oct 2023 12:38:50 +0530 Subject: [PATCH] Using strict equality in the JS example for City Quiz --- src/content/learn/reacting-to-input-with-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/reacting-to-input-with-state.md b/src/content/learn/reacting-to-input-with-state.md index 522aa63a1dc..29f60ca6dc6 100644 --- a/src/content/learn/reacting-to-input-with-state.md +++ b/src/content/learn/reacting-to-input-with-state.md @@ -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!'));