Beginner Ruby
Q6 / 100

How do you create an array containing the numbers 1, 2, and 3?

Correct! Well done.

Incorrect.

The correct answer is B) [1, 2, 3]

B

Correct Answer

[1, 2, 3]

Explanation

Arrays in Ruby are created using square brackets containing comma-separated elements.

Progress
6/100