A Admin • 828.03K Points Coach Q. How do you create a hash (dictionary) in Ruby? (A) { key1: 'value1', key2: 'value2' } (B) [ key1 => 'value1', key2 => 'value2' ] (C) ( key1: 'value1', key2: 'value2' ) (D) < key1: 'value1', key2: 'value2' > Correct Answer - Option(A) Views: 5 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.