1.0 KiB
1.0 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bd7123c9c450eddfaeb5bdef | Use Bracket Notation to Find the Nth Character in a String | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(thirdLetterOfLastName === "v", "The <code>thirdLetterOfLastName</code> variable should have the value of <code>v</code>.");'
- text: ''
testString: 'assert(code.match(/thirdLetterOfLastName\s*?=\s*?lastName\[.*?\]/), "You should use bracket notation.");'
Challenge Seed
// Example
var firstName = "Ada";
var secondLetterOfFirstName = firstName[1];
// Setup
var lastName = "Lovelace";
// Only change code below this line.
var thirdLetterOfLastName = lastName;
After Test
console.info('after the test');
Solution
// solution required