Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Juli HopeCourses Plus Student 66 Points
i got a question, create any string you want, call the length of it and use the .even? method on any integer you want
i wrote def hello(string) n/ string.length n/ end puts hello AND def even(int) n/ int.even? n/ end n/ puts even end. could you please tell me what i should be inputting??
William LiCourses Plus Student 26,868 Points
You don't have to define a method for this challenge, actually doing so will cause the challenge to fail.
# Create any string you want, and call the length method on it s = 'whatever'.length # call the even? method on any integer you want. 3.even?
that's pretty much all you need to do to finish the task.