From 82ee558dc6573e7ff6c183ec99b0233e40b5813f Mon Sep 17 00:00:00 2001 From: John Woolbright Date: Thu, 25 Apr 2024 10:51:14 -0500 Subject: [PATCH] moved newPointStructure up in scope --- scrabble-scorer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrabble-scorer.js b/scrabble-scorer.js index bbbb039..ecb797f 100644 --- a/scrabble-scorer.js +++ b/scrabble-scorer.js @@ -36,6 +36,8 @@ function initialPrompt() { console.log("Let's play some scrabble! Enter a word:"); }; +let newPointStructure; + let simpleScorer; let vowelBonusScorer; @@ -48,8 +50,6 @@ function scorerPrompt() {} function transform() {}; -let newPointStructure; - function runProgram() { initialPrompt();