Lesson 10 HELP


#1


https://www.codecademy.com/courses/ruby-beginner-en-XYcN1/2/3?curriculum_id=5059f8619189a5000201fbcb

keeps asking me did I declare a variable and I think I did but I'm not entirely sure if I remember how to, can someone give me an example of how to declare the variable for this lesson please?



#2

Create a variable called my_array and set it equal to the numbers 1 through 5, inclusive, in order.

This is an array of numbers in order:

[1, 2, 3, 4, 5]

This is how we declare and set a variable...

myVar = "some value or expression"

Now try piecing it together to answer the question in the exercise.


#3

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