Tell us what’s happening:
Can someone help me here! It this a simple problem but I don’t know what I’ve written wrong.
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_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
.
Challenge: Use Bracket Notation to Find the Last Character in a String
Link to the challenge: