From ad1e1f316e9d726f69b1ef1236765139a22a0a09 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sat, 30 Apr 2022 00:01:22 +0100 Subject: [PATCH] docs(declarations): correct grammar --- subjects/declarations/README.md | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/subjects/declarations/README.md b/subjects/declarations/README.md index 155c9cae0..b0c3a1f12 100644 --- a/subjects/declarations/README.md +++ b/subjects/declarations/README.md @@ -4,22 +4,25 @@ Create the following constant variables: -- `escapeStr`, that contains the following specials characters: `` ` ``, `\`, `/`, `"`, `'` -- `arr` that is an array containing the values 4 and '2' -- `obj` that is an object containing a property for each primitives: - - `str` for `String` - - `num` for `Number` - - `bool` for `Boolean` - - `undef` for `undefined` -- A `nested` object that contains - - arr: an array of the 3 values: 4, undefined, '2' - - obj: an object with 3 property (str, num & bool) +- `escapeStr`: a `string` which contains the following special characters: `` ` ``, `\`, `/`, `"` and `'`. +- `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. +- `nested`: an object containing: + - `arr`: an array of 3 values: `4`, `undefined` and `'2'`. + - `obj`: an object with 3 properties + - `str` with a `string` value. + - `num` with a `number` value. + - `bool` with a `boolean` value. -`nested`, `arr` and `obj` must be frozen to prevent changes from them. +`nested`, `arr` and `obj` must be frozen, so that their elements or properties cannot be changed. ### Notions - Primitive and Operators - Variables -- [nan-academy.github.io/js-training/examples/data-structures.js](https://nan-academy.github.io/js-training/examples/data-structures.js) -- [devdocs.io/javascript/global_objects/object/freeze](https://devdocs.io/javascript/global_objects/object/freeze) +- [Data Structures](https://nan-academy.github.io/js-training/examples/data-structures.js) +- [Freeze](https://devdocs.io/javascript/global_objects/object/freeze)