JavaScriptSyntax
Declare a Constant
Code example
const name = "Ada";Declares a variable that can't be reassigned.
In JavaScript, declare a constant: declares a variable that can't be reassigned — const name = "Ada";
const name = "Ada";const name = "Ada";Declares a variable that can't be reassigned.
Use const name = "Ada";.
Use this pattern: const name = "Ada";
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.