Challenge: Functions
Implement a function that returns the last character of a string.
We'll cover the following...
Task
Write a function called lastChar
that accepts a string as an argument and returns the last letter of the string.
Sample input 1:
...