title: Use Bracket Notation to Find the Last Character in a String
challengeType: 1
---
## Description
<sectionid='description'>
In order to get the last letter of a string, you can subtract one from the string's length.
For example, if <code>var firstName = "Charles"</code>, you can get the value of the last letter of the string by using <code>firstName[firstName.length - 1]</code>.
</section>
## Instructions
<sectionid='instructions'>
Use <dfn>bracket notation</dfn> to find the last character in the <code>lastName</code> variable.
<strong>Hint</strong><br>Try looking at the <code>lastLetterOfFirstName</code> variable declaration if you get stuck.
</section>
## Tests
<sectionid='tests'>
```yml
- text: <code>lastLetterOfLastName</code> should be "e".