A valid name must
- start with a letter
- continue with with a sequence letters, numbers and underscore
- not be one of the Key words.
Variable names are not case-sensitive.
example |
comment |
year |
ok |
YEAR |
ok, same as year |
y-ear |
not ok |
1year |
not ok |
year1 |
ok |
length |
not ok, is a key word |