Q. What does the return keyword do in Ruby methods?

  • (A) Exits the method
  • (B) Returns a value
  • (C) Jumps to the next iteration of the loop
  • (D) Resets the method
πŸ’¬ Discuss
βœ… Correct Answer: (B) Returns a value

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
196
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate