feat(js-checkpoint):add freeze exercise

This commit is contained in:
root 2023-09-27 10:57:25 +01:00
parent ea1af07d68
commit 4aa902d614
1 changed files with 14 additions and 0 deletions

14
subjects/freeze/README.md Normal file
View File

@ -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.