+ 12
If you declare a variable with val, then you cannot alter its value, once assigned. The variable will be immutable. You will not be able to change its value. Whereas if you use var to declare any variable, then that variable will be mutable, that means you will be able to change its value as many times as you like.
23rd Mar 2019, 4:42 PM
Letsintegreat
Letsintegreat - avatar