From 6c4af6b6d5b5427778ac3cfb3bf68587a1dddc51 Mon Sep 17 00:00:00 2001 From: Jay-0331 <51136830+Jay-0331@users.noreply.github.com> Date: Tue, 29 Mar 2022 20:46:34 +0530 Subject: [PATCH] Hi-Lo (JavaScript): Accept 'yes' in any capitalization (#690) --- 47_Hi-Lo/javascript/hi-lo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/47_Hi-Lo/javascript/hi-lo.js b/47_Hi-Lo/javascript/hi-lo.js index 362e40a3..6964570d 100644 --- a/47_Hi-Lo/javascript/hi-lo.js +++ b/47_Hi-Lo/javascript/hi-lo.js @@ -86,6 +86,7 @@ async function main() print("\n"); print("PLAY AGAIN (YES OR NO)"); str = await input(); + str = str.toUpperCase(); if (str != "YES") break; }