javaScript number 30

Tell us what’s happening:
Describe your issue in detail here.
what are the brackets notiation

Your code so far

// Setup
var lastName = "Lovelace";

// Only change code below this line
var thirdLetterOfLastName = lastName [2]; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36

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

Link to the challenge:

Be aware of white space and what it means in Javascript. myName[2] will not give the same result as myName [2].

1 Like

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