renaming vars

master
Matthew Huntington 3 years ago
parent 104b6f0880
commit 386411e7e7

@ -1,14 +1,14 @@
const numBeats = Math.ceil(Math.random()*9); const numBeats = Math.ceil(Math.random()*9);
let resultString = ''; 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 = ''; let resultString = '';
for(let i = 1; i <= numBeats; i++){ for(let i = 1; i <= numBeats; i++){
const hit = Math.floor(Math.random()*2); const hit = Math.floor(Math.random()*2);
if(hit === 1){ if(hit === 1){
resultString += appendage + ' '; resultString += limb + ' ';
} else { } else {
resultString += ' '; resultString += ' ';
} }

Loading…
Cancel
Save