Leave a rating/review
Notes: 17. Introduction
Update Notes: The student materials have been reviewed and are updated as of October 2021.
Hey everyone! I’m Chris, and I am super-happy to invite you to the third part of this course: Control Flow! So far in this course, most of the code you’ve written has been executed one line at a time, from top to bottom. But in this part of the course, you’ll learn how to switch that up, with control flow.
You already know how to use one kind of control flow: if/else statements. In this part of the course, you’ll learn three more ways to control the flow of code execution in your apps!
You’ll first touch on while loops, and their close cousin, repeat-while loops.
Then, you’ll go over for loops, learn how ranges work, and how to use for loops to work with arrays.
I’ll also show you how to nest loops inside each other, and how to exit early from a loop if you have to! Most apps you write will use control flow in some way, so to make sure it really sinks in,
I’ve got some challenges for you to complete along the way. I’ll see you in the next video to start working with control flow, in Swift!