--- id: bd7123c9c450eddfaeb5bdef title: Use Bracket Notation to Find the Nth Character in a String challengeType: 1 videoUrl: '' localeTitle: Use a notação de suporte para localizar o caractere Nth em uma seqüência de caracteres --- ## Description
Você também pode usar a notação de colchetes para obter o caractere em outras posições dentro de uma string. Lembre-se de que os computadores começam a contar a 0 , portanto, o primeiro caractere é, na verdade, o caractere zeroth.
## Instructions
Vamos tentar definir thirdLetterOfLastName para igualar a terceira letra da variável lastName usando a notação de colchetes. Sugestão
Tente observar a declaração da variável secondLetterOfFirstName se você ficar preso.
## Tests
```yml tests: - text: A variável thirdLetterOfLastName deve ter o valor de v . testString: 'assert(thirdLetterOfLastName === "v", "The thirdLetterOfLastName variable should have the value of v.");' - text: Você deve usar a notação de colchetes. testString: 'assert(code.match(/thirdLetterOfLastName\s*?=\s*?lastName\[.*?\]/), "You should use bracket notation.");' ```
## Challenge Seed
```js // Example var firstName = "Ada"; var secondLetterOfFirstName = firstName[1]; // Setup var lastName = "Lovelace"; // Only change code below this line. var thirdLetterOfLastName = lastName; ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```