Unit 2.2 of ‘App Development With Swift’ is about functions. Functions for beginners.

The book about this lesson:

In this lesson, you’ll learn how to declare functions with different parameters and return types, while gaining a better understanding of the importance of abstraction.

We talk about argument label, parameter, return type and return value.

func functionName (parameters) -> ReturnType {
//body of the function
}

Clear.😜

Well okay, to put it in detail:

func multiply(firstNumber: Int, secondNumber: Int) -> Int {
let result = firstNumber * secondNumber
return result
}

This was not my favorite topic. Let’s move on.