| title | ms.date | ms.prod | ms.technology | ms.topic | f1_keywords | dev_langs | ms.assetid | author | ms.author | manager | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Invalid character (JavaScript) | Microsoft Docs |
01/18/2017 |
visual-studio-windows |
vs-javascript |
reference |
|
|
b6a54a93-7fc9-459a-bdd6-f42d1ce40b5f |
mikejo5000 |
mikejo |
ghogen |
You composed an identifier using a character (or characters) not recognized as valid by the [!INCLUDEjavascript] compiler. Valid characters use the following rules:
-
The first character must be an ASCII letter (either uppercase or lowercase) or an underscore (_).
-
Subsequent characters can be ASCII letters, numbers, or underscores.
-
The identifier name cannot be a reserved word.
- Avoid using characters that are not part of the [!INCLUDEjavascript] language definition.