
- Ruby
- Beginner
About this Course
In Ruby Loops, you'll learn how to automatically repeat statements using Ruby. You'll learn about the loop construct, including while loops, until loops, for loops, and more. You'll also learn the basics of iteration and then move on to creating a simple contact list management program.
What you'll learn
- Loops
- Iteration
- Conditional Logic
Ruby Loops
A loop is used to repeat statements until a condition is met. Ruby offers several different kinds of loops: the loop, while loop, and until loop.
8 stepsRuby Iteration
Iteration can be used to loop through values in Arrays, Hashes, and other Ruby types. In this stage, we'll learn how to iterate over arrays and hashes. We'll also learn how to do other types of iteration using the for
and times
constructs.
Build a Simple Contact List
Using the concepts of loops and iteration, we'll build a simple contact list program using Ruby. Along the way, we'll be writing methods to make our work easier.
6 stepsTeacher
-
Jason Seifer
Jason helped launch Treehouse and spent 4 years teaching here before returning to Rails development full time.