Confusion in Second For Loop


I'm unable to understand the ending condition in the for loop as to why there is "i +" attached with name.length. if someone could elaborate on it




This is about looping over your entire name. Since the j variable is incrementing, it will be important to have the entire characters of your name stocked in your hits array! So we will add the I variable to myName.lenght


I'm confused about this, too. What is happening when you add i to myName.length?