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

Tell us what’s happening:

Your code so far
*The thirdLetterOfLastName variable should have the value of v.


// Setup
var lastName = "Lovelace";

// Only change code below this line
var thirdLetterOfLastName = lastName[1]; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36.

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

Link to the challenge:

So why don’t you tell us what’s happening?

Hi @Tunax,

Hint from instructions:

After reading the above, read the instructions again. Can you see how to fix your code now? :slight_smile:

Thanks, I got it now.

1 Like