| 1. | Classes and structs can declare constants as members 类和结构可以将常数声明为成员。 |
| 2. | Describes prohibited edits of constants declarations 描述禁止对常数声明进行的编辑。 |
| 3. | Modifier is not allowed in a constant declaration 不允许在常数声明中使用 |
| 4. | The constant declaration can declare multiple constants , such as 常数声明可以声明多个常数,例如: |
| 5. | Declare the variable or constant as 将变量或常数声明为 |
| 6. | However , you cannot declare several constants to be of the same type by using a common 子句将多个常数声明为同一类型。 |
| 7. | The type of a constant declaration specifies the type of the members introduced by the declaration 常数声明的类型指定声明引入的成员类型。 |
| 8. | Since jscript processes variable and constant declarations before executing any code , it does not matter whether the declaration is inside a conditional block or some other construct 由于jscript会在执行任何代码之前处理变量和常数声明,因此是在条件块中声明还是在某一其他构造中声明并不重要。 |
| 9. | This means that the value of a local constant is undefined until the constant declaration statement is reached and that a local variable is undefined until the variable is assigned to in the function 这就意味着在到达常数声明语句前局部常数值是未定义的,在函数中分配变量前局部变量是未定义的。 |
| 10. | For example , you can declare an enumeration for a set of integer constants associated with the days of the week , and then use the names of the days rather than their integer values in your code 例如,可以为一组与一周中的七天相对应的整数常数声明一个枚举,然后在代码中使用这七天的名称而不是它们的整数值。 |