mirror of https://github.com/01-edu/public.git
docs(change): correct grammar
This commit is contained in:
parent
57f3844ddd
commit
1e68b12c89
|
@ -4,23 +4,20 @@
|
||||||
|
|
||||||
Create 2 functions:
|
Create 2 functions:
|
||||||
|
|
||||||
- `get`: a function that takes a key and return the corresponding
|
- `get`: a function that takes a key and returns the corresponding value from the `sourceObject`.
|
||||||
value from the sourceObject
|
|
||||||
|
|
||||||
- `set`: a function that takes a key and a value update the
|
- `set`: a function that takes a key and a value. Update the value for the corresponding property of the `sourceObject` and return the value.
|
||||||
value for the corresponding property of the sourceObject
|
|
||||||
and return the set value
|
|
||||||
|
|
||||||
### Notions
|
### Notions
|
||||||
|
|
||||||
- [nan-academy.github.io/js-training/examples/functions.js](https://nan-academy.github.io/js-training/examples/functions.js)
|
- [Functions](https://nan-academy.github.io/js-training/examples/functions.js)
|
||||||
- [nan-academy.github.io/js-training/examples/data-structures.js](https://nan-academy.github.io/js-training/examples/data-structures.js)
|
- [Data Structures](https://nan-academy.github.io/js-training/examples/data-structures.js)
|
||||||
- [nan-academy.github.io/js-training/examples/get.js](https://nan-academy.github.io/js-training/examples/get.js)
|
- [Get](https://nan-academy.github.io/js-training/examples/get.js)
|
||||||
- [nan-academy.github.io/js-training/examples/set.js](https://nan-academy.github.io/js-training/examples/set.js)
|
- [Set](https://nan-academy.github.io/js-training/examples/set.js)
|
||||||
|
|
||||||
### Code provided
|
### Code provided
|
||||||
|
|
||||||
> all code provided will be added to your solution and doesn't need to be submited.
|
> The provided code will be added to your solution, and does not need to be submitted.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const sourceObject = {
|
const sourceObject = {
|
||||||
|
|
Loading…
Reference in New Issue