Use Bracket Notation to Find the Nth Character in a String

Tell us what’s happening:

Hello guys,
he continues to give me this error, You should use bracket notation.

Your code so far

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

// Setup
var lastName = "Lovelace";

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:56.0) Gecko/20100101 Firefox/56.0.

Link to the challenge:

1 Like

You can’t use spaces between the variable name and the brackets.

EDIT: I assume it is an error in the tests, because a space is allowed (according to MDN).
EDIT2: It seems like this is fixed in the beta version

1 Like

but I did not insert any space in brackets

var thirdLetterOfLastName = lastName [2];
1 Like

thank you so much i am stoned ahahah