Wednesday, 5 February 2014

3.1.1 Naming Variables


A variable name can be as short as a single letter, but it cannot be a number e.g.
a = ...... (good)
9 =.......(bad)

The name of a variable can start with a underscore ( _ )
A good variable name is specific to the information being stored.  E.g. firstName

No comments:

Post a Comment