Learn

Let’s quickly review how to create a basic Ruby method.

def double(n) return n * 2 end

The example above is just a syntax reminder.

Instructions

1.

Create a method, welcome, that puts “Welcome to Ruby!” After defining your method, call it.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?