Mapa mental
variables defined with const
Conteúdo do mapa
variables defined with const
cannot be Redeclared
cannot be Reassigned
have Block Scope
must be Assigned
always declare a variable with const
- Unless you know that the value will change
when declare:
- New Array new Object new Function new RegExp
does not define a constant value
- You can NOT 1.Reassign a constant 2.valueReassign a constant 3.arrayReassign a constant object
- you CAN: 1.Change the elements of constant array 2.Change the properties of constant object
Informações
- Descrição
- Mapa Mental sobre variables defined with const, criado por Tran Huu Nhan em 04-02-2022.
- Criado por
- Tran Huu Nhan
- Visualizações
- 1
- Avaliação