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! While you're at it, check out some resources Treehouse students have shared here.
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 trialAbdoul Bass
80 Pointscalling a method
Need help please
def say_hi
puts "hi"
end
3 Answers
Antonio De Rose
20,885 Pointsdef say_hi
puts "hi"
end
#so far so good, missing one line of code.
#you have defined the function, correct.
#the question now, have asked to call the function.
Abdoul Bass
80 Pointsyeah but how to call on it
Antonio De Rose
20,885 Pointsone video before this challenge, if you go through it, and in the video get to 2 minutes and 28 secs, the teacher explains well, how to define a method and how to call it
method one definition - wait lines 1 to 5
calling of the "wait" method line 14
or else at a glance in the same video if you look at the teachers notes, you can get idea