-
Create an array containing the following strings:
"zebra", "giraffe", "elephant"
. -
Save the array you created above to a variable
animals
. -
Using the array
animals
, how would you access"giraffe"
? -
How would you add
"lion"
to theanimals
array? -
Name and describe two additional array methods:
-
What are the boolean values in Ruby?
-
In Ruby, how would you evaluate if
2
is equal to25
? What is the result of this evaluation? -
In Ruby, how would you evaluate if
25
is greater than2
? What is the result of this evaluation?