18,100 results
Open links in new tab
  1. JavaScript Const - w3schools.com

    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

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

  3. JavaScript var let and const - w3schools.com

    The primary difference between var, let, and const lies in scoping mechanisms, reassignment rules, and how JavaScript handles …

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

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

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

  8. What is the difference between const and const {} in JavaScript?

    Dec 9, 2016 · What is the difference between const and const {} in JavaScript? I can't understand why the const {} can work. Do I …

  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 - Constants

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