From 32eee996546c66d3b21004b535da4abd01837c4a Mon Sep 17 00:00:00 2001 From: Pat Ludwig Date: Fri, 7 Jan 2022 21:26:46 -0600 Subject: [PATCH] Fix exception if choice 2 for damage is selected Initialize the variables. --- 12_Bombs_Away/javascript/bombsaway.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/12_Bombs_Away/javascript/bombsaway.js b/12_Bombs_Away/javascript/bombsaway.js index 835a2608..84831856 100644 --- a/12_Bombs_Away/javascript/bombsaway.js +++ b/12_Bombs_Away/javascript/bombsaway.js @@ -45,6 +45,8 @@ function tab(space) // Main program async function main() { + s = 0; + t = 0; while (1) { print("YOU ARE A PILOT IN A WORLD WAR II BOMBER.\n"); while (1) {