Answer matches with the given output but console showing wrong output

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


// Setup
var lastName = "Lovelace";

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

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

Link to the challenge:

Hi @rk22uk !

Welcome to the forum!

You have a spelling error here

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.