secondToLastLetterOfLastName should be the letter c. Waiting: You should use .length to get the second last letter

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

// Setup
const lastName = "Lovelace";

// Only change code below this line
const secondToLastLetterOfLastName = lastName; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15

Challenge Information:

Basic JavaScript - Use Bracket Notation to Find the Nth-to-Last Character in a String

Can you show us what you’ve tried.
Learning to describe the issue is a very important part of learning how to code.
Happy Coding!

1 Like

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