17. Error Message about 42


#1



I'm stuck on exercise 17 in this lesson. https://www.codecademy.com/courses/ruby-beginner-en-L3ZCI/3/1?curriculum_id=5059f8619189a5000201fbcb#


The console prints out the correct array, but instead of a Success Message, I keep getting "Oops, try again. It looks like 42 isn't in ints, but it should be." (Screenshot below).


The code I'm working with is below.


odds_n_ends = [:weezard, 42, "Trady Blix", 3, true, 19, 12.345]

int = odds_n_ends.select{|n| n.is_a? Integer}


Any ideas?


#2

Never mind, I'm a fool. I had the wrong name for the ints array.

Please ignore!


#3

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