Bracket Notation is being wierd!

Bracket Notation is being wierd!

// 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];


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


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.


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