Which keyword declares a variable that cannot be reassigned after initialization?

JavaScript Associate Easy

JavaScript Associate — Easy

Which keyword declares a variable that cannot be reassigned after initialization?

Key points

  • const is used for variables that should not be reassigned.
  • let allows reassignment of values.
  • var is an older way to declare variables in JavaScript.

Ready to go further?

Related questions