Bracket Notation

Tell us what’s happening:
Describe your issue in detail here.

I’m not sure what is wrong
Your code so far

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

// Only change code below this line
const firstLetterOfLastName = lastName[0]; // Change this line

Your browser information:

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

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

Link to the challenge:

Look at the beginning of the code. firstLetterOfLastName is already declared. You are trying to create another firstLetterOfLastName variable at the bottom. You do not need the const

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.