Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

how to make a new array ruby

my_array = []
# OR
my_array = [1, 2, 3]
# OR
my_array = Array.new
#OR
(1..10).to_a
 
PREVIOUS NEXT
Tagged: #array #ruby
ADD COMMENT
Topic
Name
8+9 =