7. Now you try help


#1



https://www.codecademy.com/courses/ruby-beginner-en-1o8Mb/1/2?curriculum_id=5059f8619189a5000201fbcb
Can't pass.Thanks,

Oops, try again. It looks like you didn't use the conditional assignment operator in your code.

favorite_language = nil
puts favorite_language

favorite_language ||= "r"
puts favorite_language

#2

@karolis12345,
try it with

favorite_language = nil
puts favorite_language

#favorite_language ||= "r"
puts favorite_language || "r"

#3

It doesn't work. Thanks.


#4

im stuck and completely confused... ive been on this for 45 minutes. SOMEBODY PLEASE HELP!!!!!!


#5

favorite_language ||= "Ruby"
puts favorite_language


#6

@javapro20527, thank you, I just tried this and it’s correct, but it didn’t help me understand the problem and how to solve it. Could you please explain how you got that/why it works?