What is wrong with this code?


#1



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


Getting syntax error


odds = [1,3,5,7,9]

# Add your code below!
odds.each do |odds|
    odds *2
    print odds
end


#2

here:

odds *2

you multiply it, but you don't store it anywhere or print it.


#3

Dude ! Cheers ..... Didn't occur to me I needed to store the multiplication in a variable. Thank you mate !