Lesson 25 of 26 · +110 xp

each_with_index

Index + value.

Explained simply

Your task

Write: nums.each_with_index { |n, i| puts i }

each-with.ruby
← Back