Key Concepts

Review core concepts you need to learn to master this subject

What is a Function?

func washCar() -> Void { print("Soap") print("Scrub") print("Rinse") print("Dry") }

A function is a named, reusable block of code responsible for a certain task. It consists of a definition that includes the func keyword, name, optional parameters, and return type as well as a body that contains the code block needed to execute its task.

Lesson 1 of 1

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo