Hi-Lo (JavaScript): Accept 'yes' in any capitalization (#690)

This commit is contained in:
Jay-0331
2022-03-29 20:46:34 +05:30
committed by GitHub
parent 6f9cb1bac2
commit 6c4af6b6d5

View File

@@ -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;
}