About 1,480,000 results
Open links in new tab
  1. const - JavaScript | MDN

    Jul 8, 2025 · The const declaration declares block-scoped local variables. The value of a constant can't be changed through reassignment using the assignment operator, but if a constant is an …

  2. JavaScript Const - W3Schools

    Declaring a variable with const is similar to let when it comes to Block Scope. The x declared in the block, in this example, is not the same as the x declared outside the block:

  3. const (computer programming) - Wikipedia

    In some programming languages, const is a type qualifier (a keyword applied to a data type) that indicates that the data is read-only.

  4. JavaScript const - GeeksforGeeks

    Jul 11, 2025 · The const keyword in JavaScript is a modern way to declare variables, introduced in (ES6). It is used to declare variables whose values need to remain constant throughout the …

  5. JavaScript const Keyword: A Complete Tutorial with Examples

    The const keyword in JavaScript is used for declaring variables that you don’t want to be reassigned. It is a best practice to use const for variables that should not change to make your …

  6. const (GNU C Language Manual)

    21.1 const Variables and Fields You can mark a variable as “constant” by writing const in front of the declaration. This says to treat any assignment to that variable as an error. It may also …

  7. JavaScript Const: Constant Variable Declaration and Usage

    Aug 20, 2024 · The const keyword in JavaScript is used to declare constants – variables whose values cannot be reassigned once they are initialized. This immutability brings a new level of …

  8. JavaScript Const - Declaring Constants - ZetCode

    Apr 16, 2025 · Learn how to declare constants in JavaScript using the const keyword, with examples and explanations.

  9. JavaScript const: Declaring Constants in ES6

    This tutorial shows you how to use the JavaScript const keyword to declare constants whose values are immutable.

  10. JavaScript const Keyword Explained with Examples - sebhastian

    Oct 27, 2023 · The const keyword is used to declare a variable that can’t be changed after its declaration. This keyword is short for constant (which means “doesn’t change”), and it’s used …