View Single Post
  #3 (permalink)  
Old May 6th, 2005, 04:46 PM
nzakas's Avatar
nzakas nzakas is offline
Wrox Author
Points: 647, Level: 9
Points: 647, Level: 9 Points: 647, Level: 9 Points: 647, Level: 9
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 192
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Though colorfully-worded, shenku is correct. Variable names can only begin with a letter, and underscore, or a dollar sign ($). To save yourself the trouble, you may just want to always prepend "GUID_" to the front of your variables, such as:

Code:
var GUID_bcfaeec0_3c34_4076_8abb_41d9b960c117 = 'as';
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
Reply With Quote