diff --git a/09_Battle/javascript/battle.js b/09_Battle/javascript/battle.js index 46c2ccd0..d3f307f6 100644 --- a/09_Battle/javascript/battle.js +++ b/09_Battle/javascript/battle.js @@ -260,8 +260,8 @@ async function main() str = await input(); // Check if user types anything other than a number if (isNaN(str)) { - print("INVALID INPUT. TRY ENTERING A NUMBER INSTEAD.\n") - continue + print("INVALID INPUT. TRY ENTERING A NUMBER INSTEAD.\n"); + continue; } x = parseInt(str); y = parseInt(str.substr(str.indexOf(",") + 1));