Few questions


Why my console log return "15"?

/*jshint multistr:true */
var text = "You are my guest. You can visit my house but you must not touch anything. My name is Mihai and I love sport. blah blah blah Mihai is good with computers.";
var myName = "Mihai";
var hits = [];
for(i = 0; i < text.length; i++) {
    if(text[i] === "M") {
        for(j = i; j < (myName.length + i); j++) {

Also, I just can't understand this syntaxes:
text[i] text[j]


I just figured out why is returning '15'. Because the letter 'M' is find for 3 times in the text and because my name have 5 letters it begin 5 X 3 = 15. But even now I can't see a command like console.log() and don't know yet how is printed the number.