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:

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

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