I hadn't thought that I would have so much hassle with HTML

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/ruby-beginner-en-Qn7Qw/1/4?curriculum_id=5059f8619189a5000201fbcb#

<In what way does your code behave incorrectly? Include ALL error messages.>
Apparently, strings aren’t being converted to symbols.
Especially HTML
ERROR:
“Oops, try again. It looks like HTML isn’t a symbol.”



strings.each do |string|
    for string in strings
        string.to_sym
        symbols.push(string)
    end
end


Yes, I know it’s probably clickbait, but I just DON’T KNOW what’s wrong with HTML and being a symbol…

Because you’re not pushing them as symbols.

First, did you create a variable symbols that stores an empty array?

Second, simplify your code. Everything between for and end could be reduced to one line. You also don’t need for and end.

Between the parentheses, add something to string.

Thanks!
Your post helped me, so you get a small tree. :evergreen_tree:

2 Likes

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