From c8cd997d23981cd6ff52941b002bf33d81d4ec6c Mon Sep 17 00:00:00 2001 From: Mike Rockwell Date: Thu, 28 Aug 2025 10:06:38 -0400 Subject: [PATCH] added words to array, simple console log to display them for now --- wally/app.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/wally/app.js b/wally/app.js index c0b9113..d1dea74 100644 --- a/wally/app.js +++ b/wally/app.js @@ -1,12 +1,14 @@ const words = [ 'red', 'car', - 'bed' + 'bed', + 'hat', + 'cat', + 'mat', + 'pet', + 'bin', + 'run', + 'bun' ]; -function getRandomWord() { - console.log('function triggered'); - return words[(Math.random() * (3 - 1) + 1)]; -} - -console.log( getRandomWord() ); \ No newline at end of file +console.log( words[2] ); \ No newline at end of file