6_Error!Error! Some explanation would be welcome , wouldn't it?


#1

Wow ! Complicated ! and no explanation ???

if movies[title.to_sym].nil?
puts "What rating does the movie have? "
rating = gets.chomp
movies[title.to_sym] = rating.to_i
else
puts "That movie already exists! Its rating is #{movies[title.to_sym]}."
end

Am I still Learning How to Code in Ruby Language ?

https://www.codecademy.com/courses/learn-ruby/lessons/a-night-at-the-movies/exercises/error-error?action=lesson_resume


#2

I assure you… This is still Ruby.

What’s confused you?


#3

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