Having trouble with this exercise

Tell us what’s happening:
Describe your issue in detail here.
Please i need help, what am i missing out here?

Your code so far

// Setup
const lastName = "Lovelace";

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

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 12; SM-G980F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Mobile Safari/537.36

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

Link to the challenge:


Please what is the solution

Spell the variable name correctly.

1 Like

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