18,100 results
Open links in new tab
  1. 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 …

  2. const - JavaScript | MDN - MDN Web Docs

    Sep 4, 2026 · The const declaration declares block-scoped local variables. The value of a constant can't be changed through …

  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 …

  4. JavaScript const - GeeksforGeeks

    Jun 11, 2026 · The const keyword in JavaScript is a modern way to declare variables, introduced in (ES6). It is used to declare …

  5. JavaScript const — JavaScript — jsschools

    Home › JavaScript › JS Basic › JavaScript const A Variable That Won't Change JavaScript const The `const` keyword declares a …

  6. What does Const Do in JavaScript - GeeksforGeeks

    Jun 5, 2024 · Declaring a Constant Variable The const keyword in JavaScript is primarily used for declaring constants. The value of a …

  7. JavaScript const: Declaring Constants in ES6

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

  8. JavaScript - Constants - Online Tutorials Library

    Constant Arrays and Objects in JavaScript We can declare the arrays and objects using the const keyword, but there is a little twist …

  9. Proper use of const for defining functions - Stack Overflow

    Are there any limits to what types of values can be set using const in JavaScript, and in particular, functions? Is this valid? Granted it …

  10. Const in JavaScript: when to use it and is it necessary?

    Jan 20, 2014 · The const keyword currently declares the constant in the function scope (like variables declared with var). It then goes …