#5 - I am getting a number (25) returned


#1

Hello! I have completed this, but instead of returning my name in the console, I am receiving a number back.

https://www.codecademy.com/courses/javascript-beginner-en-XEDZA/0/5?curriculum_id=506324b3a7dffd00020bf661

The console returns 25

/*jshint multistr:true */
var text = "Hello. My name is Betty. My mother's name was Betty. Her mother named her Betty after a favorite Aunt Betty. Some people think my real name is Elizabeth, but it isn't, it is Betty."
var myName = "Betty"
var hits = []
for (var i =0; i<text.length; i++){
     if(text[i]==='B'){
     for (var j = [i]; j < i +myName.length; j++){
    hits.push(text [j]);     
}}}

#6 - Code returns 25 []
#2

Well, there are 5 instances of Betty in the code (5*5 = 25). Printing your name to the console comes in the next exercise