Here is the example given:
var firstName = "Ada";
var lastLetterOfFirstName = firstName[firstName.length - 1];
Why does the code have firsstName[firstName? Why can’t you just start with the bracket so the code would read [firstName.length - 1];
I am a little confused as why it is necessary/ what the purpose is?
firstName is a string. When you use bracket notation with the string, you are referring to a specific index of the string.