You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
597 B

4 years ago
## Last First Kiss
### Instructions
Create 3 functions:
- a `first` function that takes an array or a string
and return the first element.
- a `last` function that takes an array or a string
and return the last element.
- a `kiss` function that returns an array of 2 elements
the last and the first element, in that order
### Notions
- [nan-academy.github.io/js-training/examples/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)