University of Sydney_INFO1003_Foundamental of IT_2012 Semester 2
26/08/2012
Rules for Variable Names Variable names are case sensitivei e var abc is different from var ABC i.e.
They must begin with a letter or the underscore character Spaces are not allowed inside variable names You Y cannot t used d a reserved d word df for a variable i bl name, i.e. alert
11
Rules for Variable Names Exercise, which of the following are not valid variable names: 1. var krazy 2. var$tupid 3. var illegal_var 4. var _another_illegal_var 5. var 1234One
12