Bracket Notation to Find the First Character in a String

hello please i seem lost here what did i do wrong???

Your code so far


// Example
var firstLetterOfFirstName = "";
var firstName = "Ada";

firstLetterOfFirstName = firstName[0];

// Setup
var firstLetterOfLastName = "";
var lastName = "Lovelace";

// Only change code below this line
firstLetterOfLastName = lastName[L];


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-bracket-notation-to-find-the-first-character-in-a-string

you need to put a number in the brackets so that the code knows you want the letter in the string at that index.

It doesn’t work the way you are using, but you are just trying to say that the first letter is “L”, but you should make your code work even if the string was different.