Use Bracket Notation to Find the Nth Character in a String

Use Bracket Notation to Find the Nth Character in a String
0

#1

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:


Access MultiDimensional Arrays With Indexes Exercise
#2

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


#3

but I did not insert any space in brackets


#4
var thirdLetterOfLastName = lastName [2];
                                    ^

#5

thank you so much i am stoned ahahah