From 386411e7e7bf50d688c94b59ce8561b4e86a2b65 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Tue, 2 May 2023 13:34:00 -0400 Subject: [PATCH] renaming vars --- drums.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drums.js b/drums.js index f90b356..f4ee0e6 100644 --- a/drums.js +++ b/drums.js @@ -1,14 +1,14 @@ const numBeats = Math.ceil(Math.random()*9); let resultString = ''; -const appendages = [ 'lh', 'rh', 'lf', 'rf' ]; +const limbs = [ 'lh', 'rh', 'lf', 'rf' ]; -for(let appendage of appendages){ +for(let limb of limbs){ let resultString = ''; for(let i = 1; i <= numBeats; i++){ const hit = Math.floor(Math.random()*2); if(hit === 1){ - resultString += appendage + ' '; + resultString += limb + ' '; } else { resultString += ' '; }