A

Admin • 828.03K Points
Coach

Q. How can you create an array in Ruby?

  • (A) [1, 2, 3]
  • (B) (1, 2, 3)
  • (C) {1, 2, 3}
  • (D) <1, 2, 3>
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
Arrays in Ruby are created using square brackets.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.