Ruby Loops
Treehouse
Course Summary
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.
-
+
Course Description
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
About the Teacher
Jason helped launch Treehouse and spent 4 years teaching here before returning to Rails development full time.
-
+
Course Syllabus
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 steps- Ruby Loops 5:19
- The Ruby Loop 1 objective
- Loop Conditionals 7:13
- Loop Conditionals 1 objective
- The While Loop 4:59
- The While Loop 1 objective
- The Until Loop 3:08
- The Until Loop 1 objective
Ruby 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. 8 stepsBuild 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 steps