This lesson is bugged!

Tell us what’s happening:

Your code so far

// Setup
var lastName = "Lovelace";

// Only change code below this line
var secondToLastLetterOfLastName = [lastName.length - 2]; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Use Bracket Notation to Find the Nth-to-Last Character in a String

Link to the challenge:

When you use bracket notation to reference a specific character of a string, you still must precede the bracket notation with the variable containing the string. You are missing the variable name. Look at the example again and you should see what is missing in your code.

this is not how you take a character from a string, you need to indicate the string before the square brackets