Plis help! It keeps on saying that I should use the bracket notation which i did. I read the previously answered questions, but still i could not figure it out. This was the instruction: Use bracket notation to find the first character in the lastName
variable and assign it to firstLetterOfLastName
.
Your code so far
// Setup
let firstLetterOfLastName = "";
const lastName = "Lovelace";
const firstLetter = lastName[0];
// Only change code below this line
firstLetterOfLastName = "L"; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Use Bracket Notation to Find the First Character in a String
Link to the challenge: