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.

17 lines
579 B

5 years ago
## Last First Kiss
### Instructions
Create 3 functions:
- `first`: that takes an array or a string and returns its first element or character.
5 years ago
- `last`: that takes an array or a string and return its last element or character.
5 years ago
- `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.
5 years ago
### Notions
- [Data Structures.js](https://nan-academy.github.io/js-training/examples/data-structures.js)
- [Get.js](https://nan-academy.github.io/js-training/examples/get.js)