Gnoseed
Programming · Flashcard

Which keyword declares a variable whose binding cannot be reassigned?

Why this is the answer

const creates a binding that can't be reassigned after initialization. let allows reassignment, var is a reassignable function-scoped declaration, and static isn't a JavaScript variable keyword at all (it only marks class members).

Read more in the docs
Study in Gnoseed →