HELP Use Bracket Notation to Find the First Character in a String

HELP Use Bracket Notation to Find the First Character in a String
0

#1

Tell us what’s happening:
why does it still say I need to use bracket notation?

Your code so far


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

firstLetterOfFirstName = firstName[0];

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

// Only change code below this line
firstLetterOfLastName = lastName [0];


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-bracket-notation-to-find-the-first-character-in-a-string


#2

You have a space between lastName and the brackets.


#3

ok thanks I am still not used to how sensitive JS can be