Loops and iterators


#1



https://www.codecademy.com/en/courses/ruby-beginner-en-XYcN1/2/5?curriculum_id=5059f8619189a5000201fbcb


Oops, try again. It looks like your iterator didn't print out double the value of each item of the odds array. Make sure to multiply each item by 2.


Replace this line with your code.


#2

the idea is to do the multiplying inside the each loop, not directly inside the list/array.


#3

i still dont understand


#4

on line 1 you create a list, on line 3 you create a loop, the idea is to inside the loop (line 4 and 5) multiply placeholder by two (which in turn will hold the items of the array), and then print it.