Why the Return of both methods are not Printing on the Console?


def greeter(name)
return "Welcome" + name + "."
greeter(" Chris")

def by_three?(n)
return n % 3 == 0


I'm not sure what you're asking here. Are you asking why you're not seeing the output on the screen? Or about the return function itself?


Or are you asking something else entirely?


why is dont work because reverse can you say?
fruits = ["orange", "apple", "banana", "pear", "grapes"]
fruits.sort! do {|secondfruits, firstfruits|secondfruits <=> firstfruits}


if is necessary the fuction return to pass


I'm sorry, I have no idea what you're trying to say


it should be

def greeter(x = "name") => method is expecting a sting, it does not recognize 'name' as anything !

return "Welcome #{x} "
greeter(" Chris")