Skip to Content
Learn
Methods, Blocks, & Sorting
Create Your Own

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.

Folder Icon

Take this course for free

Already have an account?