mirror of https://github.com/01-edu/public.git
feat(js-checkpoint):add freeze exercise
This commit is contained in:
parent
ea1af07d68
commit
4aa902d614
|
@ -0,0 +1,14 @@
|
|||
## freeze
|
||||
|
||||
### Instructions
|
||||
|
||||
Create the following constant variables:
|
||||
|
||||
- `arr` : an array containing the values `4` and `2`.
|
||||
- `obj`: an object containing primitive values:
|
||||
- `str`: with a `string` value.
|
||||
- `num`: with a `number` value.
|
||||
- `bool`: with a `boolean` value.
|
||||
- `undef`: with a `undefined` value.
|
||||
|
||||
`arr` and `obj` must be frozen, so that their elements or properties cannot be changed.
|
Loading…
Reference in New Issue