What do I do wrong if it says:
// running tests The
thirdLetterOfLastName
variable should have the value of
v
. You should use bracket notation. // tests completed // console output ReferenceError: v is not defined
Your code so far
// Setup
const lastName = "Lovelace";
// Only change code below this line
const thirdLetterOfLastName = [v]; // 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/108.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Use Bracket Notation to Find the Nth Character in a String
Link to the challenge: