0
What is the difference between Let and Var ?
Lesson does not show clearly the differences between Let and Var .
6 Answers
+ 3
Oops.. sorry, missed that tag, could've helped if it says "Swift" rather, sorry everyone :)
+ 3
Haha.. @Ipang, I made the same mistake too, always thought that let and var belong to JavaScript. I deleted my answer now.. š
+ 2
It clearly shows the difference. let indicates constant variable, which is not to be changed. var is just regural variable.
+ 2
let creates a constant. Once the value is set to a let identifier it cannot be changed unlike a var.
+ 1
Ok !!!
thanks
I had understood constant was entered with Int.
+ 1
@Ipang Swift not Javascript.
let is different in Swift then it is in Javascript.