Solution: Functions

Review the solution for implementing a function that returns the last character of a string.

We'll cover the following

Solution

Here is a possible solution for implementing the lastChar function.

Get hands-on with 1400+ tech skills courses.