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: