Tell us what’s happening:
It keeps saying there’s an error in my code but i don’t see anything.
Your code so far
// Setup
var firstLetterOfLastName = "";
var lastName = "Lovelace";
// Only change code below this line
var firstLetterofLastName = lastName[0]; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS aarch64 13816.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.218 Safari/537.36
Challenge: Use Bracket Notation to Find the First Character in a String
Link to the challenge: