--- id: bd7123c9c549eddfaeb5bdef title: Use Bracket Notation to Find the First Character in a String challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(firstLetterOfLastName === "L", "The firstLetterOfLastName variable should have the value of L.");' - text: '' testString: 'assert(code.match(/firstLetterOfLastName\s*?=\s*?lastName\[.*?\]/), "You should use bracket notation.");' ```
## Challenge Seed
```js // Example var firstLetterOfFirstName = ""; var firstName = "Ada"; firstLetterOfFirstName = firstName[0]; // Setup var firstLetterOfLastName = ""; var lastName = "Lovelace"; // Only change code below this line firstLetterOfLastName = lastName; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```