1.1 KiB
1.1 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bd7123c9c549eddfaeb5bdef | Use Bracket Notation to Find the First Character in a String | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(firstLetterOfLastName === "L", "The <code>firstLetterOfLastName</code> variable should have the value of <code>L</code>.");'
- text: ''
testString: 'assert(code.match(/firstLetterOfLastName\s*?=\s*?lastName\[.*?\]/), "You should use bracket notation.");'
Challenge Seed
// 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
console.info('after the test');
Solution
// solution required