Why i am getting this error?

Tell us what’s happening:
Describe your issue in detail here.
In the section Use Bracket Notation to Find the First Character in a String I have made sure to follow each step and still won’t let me pass through as it’s saying I am not using bracket notation while I used it. Any ideas?

Your code so far


// Setup
let firstLetterOfLastName = "";
const lastName = "Lovelace";

// Only change code below this line
firstLetterOfLastName = "L";
var letter = lastName[0];
// Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0

Challenge: Use Bracket Notation to Find the First Character in a String

Link to the challenge:

This line shouldn’t be added.

This line needs to use the bracket notation you used on the next line.

1 Like

OMG , I was so frustrated for the past half hour and SMH … Thank you, JeremyLT.

1 Like

We’ve all been there! Happy coding!

1 Like