Bracket Notation is being wierd!

Bracket Notation is being wierd!
0

#1
// Example
var firstLetterOfFirstName = "";
var firstName = "Ada";

firstLetterOfFirstName = firstName[0];

// Setup
var firstLetterOfLastName = "";
var lastName = "Lovelace";

// Only change code below this line
var lastname= "Lovelace";
firstLetterOfLastName = lastname[0];

#2

I am in the bracket notation challenge and it is not accepting my answer ???


#3

You didn’t have to declare another variable. Use the lastName (capital N) one.

Also, I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.


#4

thanks i have been wondering how in the world you guys got the code to actually look like code
PS:thanks for the bracket hint