10. Call Me Maybe


#1


https://www.codecademy.com/en/courses/ruby-beginner-en-L3ZCI/1/5?curriculum_id=5059f8619189a5000201fbcb

I try everything, I can't find a way past this. I've been stuck for 4 days now.


#I have used a bunch of codes


#2

Well, all you really have to do is follow the example, and adapt it with the exercise instructions:

The example:

test = Proc.new { # does something }
test.call

The instructions:

Go ahead and create a proc called hi that puts "Hello!", then .call it!

It's pretty straightforward. Create a proc called hi (so you replace test by hi) that puts "Hello!" (so you puts "Hello!" instead of # does something). And finally, you just call that proc.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.