You won’t become a Master Method Maker ‘til you make a mess of methods. (Say that three times fast.)

def by_five?(n) return n % 5 == 0 end

The example above is just a reminder on how to define a method.



Define a greeter method that takes a single string parameter, name, and returns a string greeting that person.

Make sure to use return and don’t use print or puts.


Define a by_three? method that takes a single integer parameter, number, and returns true if that number is evenly divisible by three and false if not.

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?