mirror of https://github.com/01-edu/public.git
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.
579 B
579 B
Last First Kiss
Instructions
Create 3 functions:
-
first
: that takes an array or a string and returns its first element or character. -
last
: that takes an array or a string and return its last element or character. -
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.