How do I create it?Create a variable called my_array and set it equal to the numbers 1 through 5, inclusive, in order


#1

my_array [1,2,3,4,5]


#2

Do you know how to create an array in Ruby?


#3

no i dont know Can you explain it to me?


#4

Hi @nikoonikoo,

Ruby Array Syntax -> array_name = [ ] #this is an empty array :slight_smile:


#5

oh so thx
bandit !! :))))


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.