Tell us what’s happening:
I think my code is right but it doesn’t let me through or did I miss something so simple yet again?
Your code so far
// Setup
const lastName = "Lovelace";
// Only change code below this line
const secondToLastLetterOfLastName = [lastName.length - 2]; // 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/96.0.4664.45 Safari/537.36
Challenge: Use Bracket Notation to Find the Nth-to-Last Character in a String
Link to the challenge: