Odd bug in Ruby exercise, lets me past, but?


#1



https://www.codecademy.com/en/courses/ruby-beginner-en-ET4bU/1/4?curriculum_id=5059f8619189a5000201fbcb


It doesn't fail, but when I call for a #{greeting} it returns 'Hello"


def greeter (name)
    return "#{greeting}, #{name}!"
end

def by_three? (number)
    if number % 3 === 0
    return true
else 
    return false
end
end
greeter( "MAN")
by_three?(5)


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.