Second For Loop character push without definition or declaration


not sure what had it show me the w


I'm not 100% but I believe it's because your text gives two variations of your name - both Trinity and Trin. And because your text [i] refers to T as opposed to myName[0], the code will pull both "Trinity" and "Trin ,w" which both satisfy the same character count.


thank you i posted it today and got it correct three days ago did not know how to post and got caught up and moved on it was in the way when i went to look through qa so hit create''' and it posted


where are you in school or did you complete one of the coding boot camps already or something else ?


Haha, nope. I actually just started this yesterday and happen to be on the same module for Search Text for Your Name :slightly_smiling: I find helping others helps me learn too @wtrinity


never coded before ? are you gonna do a boot camp


I self taught HTML, CSS and parts of PHP over a decade ago. But yes, I'm planning on doing a bootcamp but most require some level of coding before interviewing and applying. What about yourself @wtrinity


cool which one do rate the highest in nyc, and thanks again for the assist


I actually have no idea. I'm not based in the US unfortunately though I'd like to go to Hack Reactor in SF. I've heard good things about Full Stack in NYC? But besides that I have no clue. Let me know which one you end up going for, there's a chance I'll come to NYC too. I just have to figure out how visas work :\ When are you thinking of starting? @wtrinity


YO!!!! you hit it on the nose I'm heading to fullstack at the end of feb currently on


met with shana at full stack she worked at hack reactor


just semi nailed this but unsure still


Hey I'm having trouble with this code. It just is not working.

/*jshint multistr:true */
var myName = "Celeste";
var hits = [] ;
var text = "hello";
for (var i = 0; i < 1; i = i + 1) {
if (text[i] === "C") {
for (j-i; j hits.push(text[j]);

The error says
Oops, try again. It looks like your second 'for' loop isn't pushing values to the hits array. Make sure it's working properly and that myName's text appears somewhere in the text variable.


Your second for loop should look like this
for(j=i; j<=i+myName.length; j++)

btw your if statement won't work because your text string doesn't have any 'C'


What do u mean about the if statement.


I'm thinking about going to FullStack as well. Are you doing the immersive?


yes doing work on coderbyte and trying to get my mind prepared to follow the coder logic without so much and holding