Mindmap
variables defined with const
Inhalt der Mindmap
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
Informationen
- Beschreibung
- Mindmap am variables defined with const, erstellt von Tran Huu Nhan am 04/02/2022.
- Erstellt von
- Tran Huu Nhan
- Aufrufe
- 1
- Bewertung