mirror of https://github.com/01-edu/public.git
docs(first-last-kiss): correct grammar
This commit is contained in:
parent
4bb2147297
commit
295bf14319
|
@ -4,16 +4,13 @@
|
||||||
|
|
||||||
Create 3 functions:
|
Create 3 functions:
|
||||||
|
|
||||||
- a `first` function that takes an array or a string
|
- `first`: that takes an array or a string and returns its first element or character.
|
||||||
and return the first element.
|
|
||||||
|
|
||||||
- a `last` function that takes an array or a string
|
- `last`: that takes an array or a string and return its last element or character.
|
||||||
and return the last element.
|
|
||||||
|
|
||||||
- a `kiss` function that returns an array of 2 elements
|
- `kiss`: that takes an array or string, and returns an array of 2 elements. The returned array should contain the last and first elements or characters, in that order.
|
||||||
the last and the first element, in that order
|
|
||||||
|
|
||||||
### Notions
|
### Notions
|
||||||
|
|
||||||
- [nan-academy.github.io/js-training/examples/data-structures.js](https://nan-academy.github.io/js-training/examples/data-structures.js)
|
- [Data Structures.js](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.js](https://nan-academy.github.io/js-training/examples/get.js)
|
||||||
|
|
Loading…
Reference in New Issue