public/subjects/keep-cut
davhojt bb2400e6dc docs(keep-cut): correct grammar 2022-05-31 08:27:51 +02:00
..
README.md docs(keep-cut): correct grammar 2022-05-31 08:27:51 +02:00

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.

Notions