تماشای ویدئو What is the differences between var and val in Scala # Scala Tutorial 21 از آی-ویدئو
the difference is that a val simply gives a name to some computed value and is read-only, while a var is a memory cell that you can write to (you can "mutate" it) again and again.