Learn
We’ve done a fair amount of iteration over arrays, so to finish up, let’s review how to iterate over a hash.
numbers = [1, 2, 3, 4, 5] numbers.each { |element| puts element }
Instructions
1.
Iterate through .each
key/value pair in lunch_order
.
Please puts
out the value of each pair (just the value, not the key).
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.