A

Admin • 802.91K Points
Coach

Q. Which method returns all the keys from a hash in Ruby?

  • (A) keys
  • (B) values
  • (C) items
  • (D) elements
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
The keys method returns all keys of a hash.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.