using 'var', variable can be reassigned.
using 'val', variable cannot be ressiagned. the same as Javascript 'const'.