17/20 I wrote "Ruby" but the output is "I don't know that language!"


#1

https://www.codecademy.com/courses/ruby-beginner-en-1o8Mb/3/3?curriculum_id=5059f8619189a5000201fbcb

Hi Guys, my input is "Ruby" but the output is "I don't know that language!". Can you help me out? Thanks in advance!


puts "What's your favorite language?"
language = gets.chomp
case language
when language == "Ruby"
  puts "Ruby is great for web apps!"
when language == "Python"
  puts "Python is great for science."
when language == "JavaScript"
  puts "JavaScript makes websites awesome."
when language == "HTML"
  puts "HTML is what websites are made of!"
when language == "CSS"
  puts "CSS makes websites pretty."
else
  puts "I don't know that language!"
end

#2

Hello @datamaster36901,

You don't need to put when language == "Ruby", you can just put when "Ruby".


#3

Hi @bartholomewallen

I just figured out. One of them are the one that you mention and there are few too. Below is my correction: