About 1,700,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 object, its …

  2. JavaScript Const - W3Schools

    When to use JavaScript const? Always declare a variable with const when you know that the value should not be changed. Use const when you declare: A new Array A new Object A new Function A …

  3. constants - What does 'const&' mean in C++? - Stack Overflow

    I understand what the "address of" operator & and the const keyword mean separately. But when I was reading some sample code I saw const&, and I just wanted to know what it means.

  4. 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.

  5. Difference between const int*, const int * const, and int const

    Jul 11, 2025 · int const* is pointer to constant integer This means that the variable being declared is a pointer, pointing to a constant integer. Effectively, this implies that the pointer is pointing to a value …

  6. 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 code more …

  7. JavaScript const - GeeksforGeeks

    Jul 11, 2025 · const is block-scoped, similar to let, and is useful for ensuring immutability in your code. Unlike let, the primary feature of const is that it cannot be reassigned once it has been initialized.

  8. The const keyword - C# reference | Microsoft Learn

    Dec 4, 2024 · You use the const keyword to declare a constant field or a local constant. Constant fields and locals aren't variables and can't be modified. Constants can be numbers, Boolean values, …

  9. JavaScript Const - Declaring Constants - ZetCode

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

  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 in a …