Use Bracket Notation to Find the Nth Character in a String - really need help with this!

Use Bracket Notation to Find the Nth Character in a String - really need help with this!
0

#1

Tell us what’s happening:

Your code so far

// Example
var firstName = "Ada";
var secondLetterOfFirstName = firstName[1];

// Setup
var lastName = "Lovelace";

// Only change code below this line.
var thirdLetterOfLastName = "Lovelace"[2];



Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36.

Link to the challenge:


#2

Since the lastName variable has already been assigned the string “Lovelace”, the challenge wants you to use the lastName variable with the bracket notation. You have the correct index (2), but just need to use the variable.