Skip to content

Fatima: Gabby Tam Loop Lab 8/25#13

Open
Gabbytam wants to merge 2 commits intoTaylorDarneille:masterfrom
Gabbytam:master
Open

Fatima: Gabby Tam Loop Lab 8/25#13
Gabbytam wants to merge 2 commits intoTaylorDarneille:masterfrom
Gabbytam:master

Conversation

@Gabbytam
Copy link

I worked on this deliverable after working on the function deliverable and it seemed much easier by comparison! Feeling decent about loops.

console.log(phrases[randNum]);
}
i++;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! you've simulated the functionality of a for loop with a while loop. pretty cool! 😄

} else {
console.log(i);
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double check this. 15 is getting caught in the fizz section.

the main idea here is to put the most specific condition first, as fewer of the numbers will get caught in it. so, lines 49-50 should be first, and the check against 3 and the check against 5 can happen after that

@ghost
Copy link

ghost commented Sep 9, 2020

awesome! glad loops feel good to you. you did a great job with the assignment, marking complete 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant