mirror of https://github.com/01-edu/public.git
root
1 year ago
1 changed files with 14 additions and 0 deletions
@ -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