Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Functions in Swift

via CodeSignal

Overview

Learn to organize Swift code with functions, enhancing readability and reusability. This course covers defining and calling functions, passing parameters, returning values, and understanding scope, all within the context of managing space missions and exploration tasks.

Syllabus

  • Lesson 1: Defining Functions - The Basics
    • Defining Your First Function
    • Modify Function to Prepare Mission
    • Fix the Function Code
    • Defining Basic Functions in Swift
    • Define a Launch Function
  • Lesson 2: Using Parameters in Functions
    • Run Code with Parameters in Swift
    • Modify Function Output
    • Fix the Announce Function
    • Announce Mission Starting Location
    • Announcing the Mission Destination
  • Lesson 3: Returning Data from Functions
    • Calculating Travel Time with Functions
    • Calculate Fuel for Space Mission
    • Fix the Space Travel Code
    • Calculate Crew Size Function
    • Calculate Travel Time Function
  • Lesson 4: Understanding Function Scope
    • Understanding Variable Scope in Swift
    • Change Variable Names to Understand Scope
    • Fix Variable Scope Bug
    • Mastering Function Scope in Swift
    • Function Scope in Action
  • Lesson 5: Advanced Function Usage - Combining Concepts
    • Combining Function Concepts in Swift
    • Modify Mission Supplies Check
    • Fix the Launch Preparation Function
    • Complete Mission Launch Check
    • Write Function to Check Equipment

Reviews

Start your review of Functions in Swift

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.