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.
davhojt
bb2400e6dc
|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago |
README.md
Keep Cut
Instructions
Create some functions, which each take a string
as an argument:
-
cutFirst
: returns the string with the first 2 characters removed. -
cutLast
returns the string with the last 2 characters removed. -
cutFirstLast
returns the string with the first 2 characters and the last 2 characters removed. -
keepFirst
returns only the first 2 characters. -
keepLast
returns only the last 2 characters. -
keepFirstLast
returns the first 2 characters, and the last 2 characters.