About 70,100 results
Open links in new tab
  1. const - JavaScript | MDN - MDN Web Docs

    Jul 8, 2025 · The const declaration creates an immutable reference to a value. It does not mean the value it holds is immutable — just that the variable identifier cannot be reassigned.

  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. const (computer programming) - Wikipedia

    In C, C++, and D, all data types, including those defined by the user, can be declared const, and const-correctness dictates that all variables or objects should be declared as such unless they need to be …

  4. What is the difference between const int*, const int * const, and int ...

    Jul 17, 2009 · The first thing to the left of the "const" is what's constant. If "const" is the thing the farthest to the left, then the first thing to the right of it is what's constant.

  5. JavaScript const: Declaring Constants in ES6

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

  6. JavaScript const Keyword: A Complete Tutorial with Examples

    The const keyword in JavaScript is used to declare variables that have a constant reference, meaning their values cannot be reassigned after they are declared. Introduced in ES6 (ECMAScript 2015), …

  7. Introduction to JavaScript - How Do let and const Work Differently …

    Use const when you want to declare variables that should remain constant, like configuration values or settings that shouldn't be changed accidentally. You can also use the var keyword, but it's not as …

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

  9. JavaScript Const: The Definitive Guide - Calisto Code

    May 8, 2023 · What is const in JavaScript? const is a keyword in JavaScript that is used to declare a constant variable. A constant variable is a variable that cannot be reassigned once it has been …