Browse Source

feat(js-checkpoint):add freeze exercise

CON-2175-Markdown-create-subject-for-Freeze-exercise
root 1 year ago
parent
commit
4aa902d614
  1. 14
      subjects/freeze/README.md

14
subjects/freeze/README.md

@ -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…
Cancel
Save