From 4e289c5e89114f28e83a0dab247dc9a1f024f143 Mon Sep 17 00:00:00 2001 From: Juan Marco Date: Mon, 27 Jun 2022 15:17:51 +0200 Subject: [PATCH] Add missing semicolons --- 09_Battle/javascript/battle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));