Use Bracket Notation to Find the Last Character in aString

Tell us what’s happening:
I can´t understand what´s wrong in my code. Thanks in advance :wink:

Your code so far


// Example
var firstName = "Ada";
var lastLetterOfFirstName = firstName[firstName.length - 1];

// Setup
var lastName = "Lovelace";

// Only change code below this line.
var lastLetterOfLastName = lastName[lastName.lenght - 1];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0.

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

Just a matter of spelling, catch me every time - if you have doubts check the example

1 Like

I’ve looked and wrote so many times and didn’t noticed :sweat_smile:
Thank you