Skip to content

Conversation

@lillypiri
Copy link

No description provided.


# Counts to 100.
# Makes an array of length 100 where each value is the fizzbuzz value.
def to_array
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you can add the array method after you define the fizz/buzz's

# Start with an empty array.
array = []
# Count from 1 to 100.
(1..100).each do |x|
Copy link
Member

Choose a reason for hiding this comment

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

try moving this out of the class

Copy link
Author

Choose a reason for hiding this comment

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

if I do this, should I just get rid of the array?

@@ -1,29 +0,0 @@
class Human
Copy link
Member

Choose a reason for hiding this comment

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

careful not to include other related files

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.

4 participants