const
Also known as const declaration
A JavaScript declaration for a block-scoped binding that cannot be reassigned after initialization.
In the real world
const user = { name: 'Ada' }; user.name = 'Grace'; is allowed, but user = {}; is not.
Also known as const declaration
A JavaScript declaration for a block-scoped binding that cannot be reassigned after initialization.
const user = { name: 'Ada' }; user.name = 'Grace'; is allowed, but user = {}; is not.