0
For a variable parameter, is var written before or after its external parameter name?
2 Answers
0
before like
var pName = "value"
0
If I understand your question correctly, you don't use var at all in function parameters.
func add(a numA: Int, b numB: Int)-> Int {
return numA + numB
}
print(add(a: 3, b: 4))
a and b are the external variable names.