Your second loop


I'm not sure if it is my code but when I click save and submit, nothing is shown in the console. Please help.

var text = "Hey Adrien. Are you doing good Adrien?";
var myName = "Adrien";
var hits = [];
for(var i = 0; i < text.length; i++) {
if (text[i] === "A") {
for(var j = i; j < (myName.length + i); j++){



you will work on logging in the next exercise

this code is only to find your name in text and store it in an array


oh so nothing is supposed to appear in the console?


not yet, in the next exercise you will add this code


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.