Ruby - Methods
Which of the following is the correct syntax to define a method named
hello that takes no arguments?hello that takes no arguments?def method_name(arguments) and closed with end. Parentheses are optional if no arguments.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions