diff --git a/subjects/freeze/README.md b/subjects/freeze/README.md new file mode 100644 index 000000000..d28e7b90d --- /dev/null +++ b/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.