Right! Since arrays start at 0
, "ruby"
is has an index of 1
or a negative index of -2
, as the array's length is 3
.
No, sorry! Since arrays start at 0
, "ruby"
is has an index of 1
or a negative index of -2
, as the array's length is 3
.