How can do this thing

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

   **Your code so far**

// Setup
let firstLetterOfLastName = "";
const lastName = "LoveLace";

// Only change code below this line
var firstLetterofLastName = lastName[0];
// 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.1 Safari/605.1.15

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

Link to the challenge:

You don’t need to use var here. The variable firstLetterOfLastName has already been declared earlier. In fact, you should be seeing an error in the console pane telling you this.

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