Mind map
variables defined with const
Map content
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
Information
- Description
- Mind Map on variables defined with const, created by Tran Huu Nhan on 04/02/2022.
- Created by
- Tran Huu Nhan
- Views
- 1
- Rating