Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

A constant is a value that the programmer cannot change, for example numbers (1, 2, 42). With variables, on the other hand, the programmer can assign a new value to a variable name already in use.

Like variables, some constants are bound to identifiers. For example, the identifier pi could be bound to the value 3.14... .

Learn more

General knowledge

文档标签和贡献者

 此页面的贡献者: PetiPandaRou, klez, Andrew_Pfeiffer, Jeremie, Pragna_Vedanthi
 最后编辑者: PetiPandaRou,