Writing Reusable Code with Functions
Functions allow you to group code logic into a single block that can be called multiple times.
swift func greet(name: String) -> String { return "Hello, (name)!" } let message = greet(name: "Sara")
development ios 0 to hero full course 2026
Functions allow you to group code logic into a single block that can be called multiple times.
swift func greet(name: String) -> String { return "Hello, (name)!" } let message = greet(name: "Sara")