The val keyword creates a read-only variable. We can read from it, but we cannot modify it from its initial value.

You can learn more about this in:
Run Expand Edit