What i doing here?

Tell us what’s happening:

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.length - 1];


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.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

You’ve got an invalid character opening bracket “[ٍ” If you change that it should work.

it is worked, thank you

1 Like

The left bracket if an arabic karatan. Replace this by standard left bracket.