Now it’s time for you to build your own method. Remember, the syntax looks like this:

def method_name # Do something! end



Create a method, greeting, in the editor. It should use puts to print a greeting to the console.

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?