What is difference between 'let' and 'var' declaration ?
Answer / iosraj
constants are expressed with the ‘let’ keyword. So once assigned value can not be change, but assigned values using 'var' keyword can be change.
In terms of objective -c or compare with objective -c, 'var' is Mutable and 'let' is NonMutable.
let kMyConstant = 40
Or
let kMyConstant: Int = 40
var myString = "This is my string."
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain deinitializer in swift programming language?
Explain some biggest changes in usernotifications.
Can you explain regular expression and responder chain?
What is an optional in swift?
Is swift similar to c?
What is mutating keyword in swift?
Is swift memory safe?
Is apple using swift?
What is difference between class and struct swift?
Is swift open source?
What is the floating point numbers and what are the types of floating number in swift?
Why swift is the best language?