About 352,000 results
Open links in new tab
  1. const - JavaScript | MDN

    Mar 19, 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 …

  2. JavaScript const - W3Schools

    Always declare a variable with const when you know that the value should not be changed. Use const when you declare: The keyword const is a little misleading. It does not define a constant …

  3. How to Declare Variables in JavaScript – var, let, and const

    Nov 7, 2023 · Through this article, you will learn how to declare and mutate variables using var, let, and const, and you'll get a better understanding of the differences between them. I will …

  4. JavaScript const - GeeksforGeeks

    Feb 12, 2025 · The const keyword in JavaScript is a modern way to declare variables, introduced in (ES6). It is used to declare variables whose values need to remain constant throughout the …

  5. JavaScript const: Declaring Constants in ES6

    ES6 provides a new way of declaring a constant by using the const keyword. The const keyword creates a read-only reference to a value. By convention, the constant identifiers are in …

  6. JavaScript Const: Constant Variable Declaration and Usage

    Aug 20, 2024 · The const keyword in JavaScript is used to declare constants – variables whose values cannot be reassigned once they are initialized. This immutability brings a new level of …

  7. JavaScript Variables and Constants - Programiz

    A JavaScript variable is a container for storing data, while a constant is a variable whose value cannot be changed. In this tutorial, you will learn about JavaScript variables and constants …

  8. Are there constants in JavaScript? - Stack Overflow

    Sep 25, 2008 · Since ES2015, JavaScript has a notion of const: This will work in pretty much all browsers except IE 8, 9 and 10. Some may also need strict mode enabled. You can use var …

  9. How to Declare Constants in JavaScript? - W3docs

    Read this tutorial and learn useful information about declaring a constant by using the const keyword which creates a read-only reference to the value.

  10. Constants in JavaScript - Delft Stack

    Mar 14, 2025 · In JavaScript, constants are defined using the const keyword. A constant is a block-scoped variable whose value cannot be changed through reassignment. This means …

Refresh