Variable Names Legal and Illegal Flashcards
(4 cards)
What illegal character is in this statement.
var product cost = 3.45;
A space is an illegal character in a variable name.
Type the illegal character in this statement.
var P2_a%88$;
%
Rewrite this using camelCase.
var Nameofband;
var nameOfBand;
Declare a variable using nothing but all of the legal characters that aren’t alphabet characters or numbers. Don’t repeat any of them.
var $_;
or
var _$;