I'm stuck on this challenge

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:

You don’t need to declare and assign it to a variable. You need to remove the var and correct the typo in the name. It should be firstLetterOfLastName not firstLetterofLastName
The letter O is capital in the name.

1 Like

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