DEV Community

Discussion on: for/in vs. each in Ruby: More than just syntax

Collapse
 
mantis profile image
Michael A • Edited

how am i getting different results than you @drbragg ?

different reaults

Collapse
 
drbragg profile image
Drew Bragg

What's returned if you call num after the each blockand after thefor` block?