What are the rules for
A variable name cannot start with a numeral. For instance, 3x or
76trombones would all be
illegal variable names.
go4it would both be perfectly valid variable names.
You cannot have a mathematical or logical operator in a variable name. For instance,
this+that would both be illegal... because the * and the + are arithmetic operators. The same holds true for ^, /, \, !, etc.
underscore; for example... some:thing or
do'to would all be
gallons_ as variable names and they are perfectly legal.
doubt as to whether something is or is not part of the language --
may get some occasional surprises.
You can, of course, use what are otherwise keywords as parts of variable names. For instance,
theLocation would all be perfectly acceptable.
Gasbag GasBag gasBag