Intro to Ruby - Day 10 - Arrays part 2

preview_player
Показать описание
More use of arrays
Рекомендации по теме
Комментарии
Автор

i like the way how Dave teaches. Enjoyable . 

ahmetyasar
Автор

can you tell the order in which website should be madeby beginners to learn ruby ..like blog, comercial?

Isheel
Автор

My code was:

count = states.count
while count > 0 
puts states[count -1]
count -=1
end
puts "End"

This worked perfectly. Is it wrong because I haven't put the -1 after states.count? 

Kewendi