Skip to content

Commit 6c4af6b

Browse files
authored
Hi-Lo (JavaScript): Accept 'yes' in any capitalization (#690)
1 parent 6f9cb1b commit 6c4af6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

47_Hi-Lo/javascript/hi-lo.js

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ async function main()
8686
print("\n");
8787
print("PLAY AGAIN (YES OR NO)");
8888
str = await input();
89+
str = str.toUpperCase();
8990
if (str != "YES")
9091
break;
9192
}

0 commit comments

Comments
 (0)