Ruby - Methods
What will be the output of this Ruby code?
def positive?(num) num > 0 end puts positive?(5) puts positive?(-3)
def positive?(num) num > 0 end puts positive?(5) puts positive?(-3)
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions