Why is the caption printed out? #13


#1



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


Easy topic, put why does the program return the caption?

After clicking Save & Submit code, I expected it to print nothing or just nil in the box. I'm confused why it would print "A giraffe surrounded by weezards!"


alphabet = ["a", "b", "c"]
alphabet << ("d") # Update me!

caption = "A giraffe surrounded by "
caption << "weezards!" # Me, too!


#2

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