VARIABLE NAMES: LEGAL & ILLEGAL
Assignment # 4
JAVASCRIPT
VARIABLE NAMES: Legal & Illegal | JAVASCRIPT
1. Declare 3 variables in one statement.
2. Declare 5 legal & 5 illegal variable names.
3. Display this in your browser
a) A heading stating “Rules for naming JS variables”
b) Variable names can only contain ______, ______,
______ and ______.
For example $my_1stVariable
c) Variables must begin with a ______, ______ or
_____. For example $name, _name or name
d) Variable names are case _________
e) Variable names should not be JS _________
-- END --
Page 1 of 1