Skip to Content
Learn
Loops & Iterators
Iterating with .times

Finally, let’s replace our loop with the .times iterator.

Instructions

1.

Use the .times iterator to print "Ruby!" to the console 30 times. Hit Run to see the majesty of your code and complete this lesson!

Folder Icon

Take this course for free

Already have an account?