0
/ 50
Write a method that will return a string composed of the last n
characters of wholeString
.
For example:
- Running
getSuffix("reading", 3)
...
Write a method that will return a string composed of the last n
characters of wholeString
.
For example:
getSuffix("reading", 3)
should return "ing"getSuffix("Magic", 1)
should return "c"Your feedback will appear here when you check your answer.