Basic JavaScript - Use Bracket Notation to Find the Last Character in a String

help
i cbnat do this

i Followed the Turral but it dbnot wonk

please hrlp me

// Setup
const lastName = "Lovelace";

// Only change code below this line
const lastLetterOfLastName = lastName[lastname.length - 1];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Use Bracket Notation to Find the Last Character in a String

Link to the challenge:

Look at the console pane. You should be seeing the following error:

“ReferenceError: lastname is not defined”

Do you see the problem?

1 Like