Learn Swift: Functions

Start

Why Learn Swift: Functions?

Continue your Swift learning journey! Learn how to create reusable blocks of code using functions. These functions will allow your programs to become more flexible with the use of parameters and arguments. You’ll also make use of functions’ return values for storage or manipulation.

Take-Away Skills

By the end of this course, you will be able to:

  • Reuse blocks of code by defining and using functions.
  • Incorporate parameters and arguments into your functions.
  • Return values from a function and store them for later use.

We recommend that you complete Learn Swift: Arrays, Sets, and Dictionaries before completing this course.

Codecademy courses have been taken by employees at

Google LogoFacebook LogoNASA LogoIBM LogoDropbox Logo
  1. 1
    In this module, you will learn how to write and interact with functions in Swift.

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
testimonial

— Madelyn, Pinterest

I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.

Course Description

Continue your Swift journey by learning functions — reusable and callable code blocks!

Details

Earn a certificate of completion
1 hour to complete in total
Beginner

In this module, you will learn how to write and interact with functions in Swift.