Hi,
I have just started to learn a programming language from scratch, and am working with Swift. Can anyone solve this problem.
Thanks in advance
I have just started to learn a programming language from scratch, and am working with Swift. Can anyone solve this problem.
Code:
func apple123(){
var apple = "1"
if apple = "2" { - here I get the error cannot assign to immutable value of type 'string'
println("True")
}
else {
println("FALSE")
}
}
Thanks in advance
Last edited by a moderator: