10. The Right tool for the job

ruby

#1

Hey, I tried this code, but nothing is coming out on the console.

my_array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

n = 0

n += 2 puts "#{n}" if n <= 10...

it allows me to move onto the next lesson, however it does not print a thing on the console.. What am i doing wrong?


#2

Hold on while I check my code and I'll get back with you. This archived post should answer your question. https://www.codecademy.com/forum_questions/52a483f6631fe99708002185#answer-52a48f038c1ccc3eca005c98