return value

let birthYear = 1994
var currentYear = 2020
func findAge() -> Int {
  return currentYear-birthYear
}
print(findAge()) // prints: 26
Comments