Learn
Now it’s time for you to build your own method. Remember, the syntax looks like this:
def method_name # Do something! end
Instructions
1.
Create a method, greeting
, in the editor. It should use puts
to print a greeting to the console.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.