let declaration

A variable declared with the let keyword, which can be reassigned later.

In more detail

Because the value may change, TypeScript infers the wider type, such as string rather than "Avery". Prefer const unless you really need to reassign.

Related terms

Taught in

References