Ruby - Methods
Find the problem in this Ruby method:
def check(value)
if value > 0
return
else
return "Negative"
end
enddef check(value)
if value > 0
return
else
return "Negative"
end
endvalue > 0, method returns without value, which means nil.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions