These are chat archives for FreeCodeCamp/PairProgrammingWomen

29th
Jul 2015
Gildara
@Gildara
Jul 29 2015 00:03
I'm going to scrap what I have done as I think I am off on some weird tangent
function mutation(arr) {
  for(i=0; i<arr[1].length; i++)  {
    for(j=0; j<arr[0].length; j++)  {
      if(arr[1].charAt(i)==arr[0].charAt(j) ) {
        return false;}
      else return true;

    }

  }

}

mutation(['hello', 'hey']);
Olu Niyi-Awosusi
@oluoluoxenfree
Jul 29 2015 00:06
does that not work?
should be triple equals
Olu Niyi-Awosusi
@oluoluoxenfree
Jul 29 2015 00:12
confused by the (if false) section actually
Ingrid
@voodoobettie
Jul 29 2015 01:19
This message was deleted
This message was deleted
I think the problem with your code might be that you're not incrementing the array selection within the loop

I don't know what the question is but it looks like the loop needs to increment for the code to work:
e.g.

for(i=0; i<arr[i].length; i++) {

I'm not sure if that helps or not :)
Lawrence McBhee
@lawrence34
Jul 29 2015 01:32
hello , i'm new here
Gildara
@Gildara
Jul 29 2015 01:34
hello and welcome
@lawrence34
@oluoluoxenfree I'm not sure if that helps or not. I have to think about it a bit. Since there are only 2 elements in the array, and the two need to be compared, I thought I didn't really need to iterate over them. Thanks for the advice!
Ingrid
@voodoobettie
Jul 29 2015 01:47
Oops, sorry, that was me that wrote the above. I deleted my typo, and explanation of typo lol
I don't know the question but it seems that your loop wasn't going to go anywhere
:)
Gildara
@Gildara
Jul 29 2015 01:49
oh thanks to you then @voodoobettie , lol
you may be right, I feel like I am not seeing through the problem correctly
there's definitely something fundamentally wrong with this, so i think i am going to scrap it and start over.
Ingrid
@voodoobettie
Jul 29 2015 01:54
I just had a look, yep that's a tough one
Gildara
@Gildara
Jul 29 2015 01:56
since indexOf is mentioned in the instructions, I feel like I should be using it somewhere or other
Ingrid
@voodoobettie
Jul 29 2015 01:56
I think you are right
but it also says if it contains all of the letters of the second element, but doesn't necessarily say in order
Clari
@loveclari
Jul 29 2015 02:26
anyone here in San Francisco?
Melo21
@Melo21
Jul 29 2015 04:13
hello all! I'm just starting Bonfire, anyone would like to pair?
k_ayana
@kdigital
Jul 29 2015 13:39
@Tinabe1970 I'm a newbie with some familiarity with hmls/css.
Betsey Biggs
@betsbillabong
Jul 29 2015 14:23
@Melo21 not today, as I'm in the later waypoints, but I'm trying to speed my way through them and get to the bonfires. Maybe pair next week?