In Swift, you use var
for variables (which can change) and let
for constants (which donβt change).
var
allows you to reassign values.let
defines a constant, value cannot be changed after assignment.let
over var
unless you need the value to change β it's safer and avoids accidental bugs.