Define two methods in the editor:
1. 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.)
It reads the code below as correct, but i want it to show "Hello John" at the end, without using puts or print. If i add puts greeter?("John") at the end it does return that but then it shows an error
The second part with the numbers works fine, it returns "false" but that is the only thing. Is this exercise flawed or maybe it doesn't need to show the users greeting ?
def greeter(name) return name end greeter("Mike") def by_three?(x) return x % 3 == 0 end by_three?(5)