About 1,690,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. 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. While this can be used to declare constants, const in the C …

  3. 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 …

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

  5. Const keyword in C++ - GeeksforGeeks

    Oct 7, 2025 · There are three possible ways to use a const keyword with a pointer, which are as follows: 1. Pointer to a Const Value. Syntax: Example: Explanation: Here, i and j are pointers …

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

  7. const type qualifier - cppreference.com

    Jul 2, 2023 · C adopted the const qualifier from C++, but unlike in C++, expressions of const-qualified type in C are not constant expressions; they may not be used as case labels or to …

  8. JavaScript const: Declaring Constants in ES6

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

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

    Jul 11, 2025 · Const qualifier doesn't affect the pointer in this scenario so the pointer is allowed to point to some other address. The first const keyword can go either side of data type, hence int …

  10. 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 …