I've been stuck on this problem. I'd appreciate any help.
The instructions "Use the .each method on the odds array to print out double the value of each item of the array. In other words, multiply each item by 2.
Make sure to use print rather than puts, so your output appears on one line."
My code
odds = [1,3,5,7,9]
odds.each do |placeholder|
odds *= 2
print odds
end
placeholder, notoddsputs "placeholder=#{placeholder]"as the first line of the block.