When we run the following code,
we will get an error:
We are getting an error,
because 1
cannot be a variable.
In Ruby, a variable name must start
with a lowercase letter or with an underscore.
Here, if we use a1
,
then that would work.
Since a variable can start
with an underscore, _hello
is also a valid variable name.