Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
M-C-Haker
@M-C-Haker
function mutation(arr) { var firstLcArr = arr[0].toLowerCase(); var secLcArr = arr[1].toLowerCase(); for (i = 0; i < secLcArr.length; i++) { if (firstLcArr.indexOf(secLcArr[i]) < 0) { return false; } return true; } } mutation(["hello", "hey"]);
hello and hey should return false for some reason i am stuck on this. any ideas?
Kelechi Chinaka
@ke1echi
wow @Lumexralph
Ogundele Olumide
@Lumexralph
@kelechichinaka it almost happened the second time, finished it more than a week ago but had the urge to check what I did then out of curiosity I clicked submit assessment button and I was damn! thank God, I hope i'm still in time
CamperBot
@camperbot
lumexralph sends brownie points to @kelechichinaka :sparkles: :thumbsup: :sparkles:
:cookie: 290 | @kelechichinaka |http://www.freecodecamp.com/kelechichinaka
Ogundele Olumide
@Lumexralph
@M-C-Haker return true out of the loop
Manish Giri
@Manish-Giri
@Lumexralph which assessment
M-C-Haker
@M-C-Haker
isn't -1 false though? @Lumexralph
Kelechi Chinaka
@ke1echi
u did another test @Lumexralph
Ogundele Olumide
@Lumexralph
@M-C-Haker your code was difficult to read though
@kelechichinaka yes baba mi
M-C-Haker
@M-C-Haker
function mutation(arr) {
var firstLcArr = arr[0].toLowerCase();
var secLcArr = arr[1].toLowerCase();
for (i = 0; i < secLcArr.length; i++) {
if (firstLcArr.indexOf(secLcArr[i]) < 0) {
return false;
}
return true;
}
}
mutation(["hello", "hey"]);
Ogundele Olumide
@Lumexralph
@Manish-Giri heard of Andela ?
M-C-Haker
@M-C-Haker
i don't know why everyone else can seem to format properly but i can't
Ogundele Olumide
@Lumexralph
@M-C-Haker '''
CamperBot
@camperbot
:bulb: to format code use backticks! ``` more info
Manish Giri
@Manish-Giri
@M-C-Haker use 3 backticks not 1
@Lumexralph nope
who's Andela
Ogundele Olumide
@Lumexralph
@M-C-Haker click on the more info link
Markus Kiili
@Masd925
@Lumexralph Morning.
Ogundele Olumide
@Lumexralph
@Manish-Giri it's a software development company that recruits software developers or should I say prospective train them, pay them and outsource them to clients all over the world
@Masd925 Good Morning, how's vacation going?
Long Nguyen
@longnt80
can someone explain this Array.prototype.reduce.call:
var uniqueInOrder=function(iterable){

    return Array.prototype.reduce.call(iterable, function(a,b) { 

        if (a[a.length-1] !== b) a.push(b);

        return a;

    }, []);

}

uniqueInOrder('AAAABBBCCDAABBB'); // should return ['A', 'B', 'C', 'D', 'A', 'B']
Ogundele Olumide
@Lumexralph
@Masd925 ES 2017 finally released
Kelechi Chinaka
@ke1echi
is the application still open @Lumexralph
M-C-Haker
@M-C-Haker
@Manish-Giri 3 backticks?
Manish Giri
@Manish-Giri
@M-C-Haker
```
code
Markus Kiili
@Masd925
@Lumexralph Fine. Just heading for Finnish rapid chess championships. Two days without kids anywhere ;)
Manish Giri
@Manish-Giri
```
M-C-Haker
@M-C-Haker
@Manish-Giri oh thanks
CamperBot
@camperbot
m-c-haker sends brownie points to @manish-giri :sparkles: :thumbsup: :sparkles:
:star2: 6212 | @manish-giri |http://www.freecodecamp.com/manish-giri
Ogundele Olumide
@Lumexralph
@M-C-Haker you need to return true after the loop is done because your loop has to be done checking all the characters in arr[0]
M-C-Haker
@M-C-Haker
@Lumexralph if i return true after the loop everything else is incorrect...
Ogundele Olumide
@Lumexralph
@kelechichinaka always open just different cycles
@Masd925 :joy:
Markus Kiili
@Masd925
@Lumexralph Did you already print it and put it under your pillow?
Ogundele Olumide
@Lumexralph
@M-C-Haker (firstLcArr.indexOf(secLcArr[i]) === -1 ) that's to say it found it so
Kelechi Chinaka
@ke1echi
u play chess? @Masd925
mehn i gats apply @Lumexralph
Markus Kiili
@Masd925
@kelechichinaka Yes.
Manish Giri
@Manish-Giri
@Lumexralph is there a fee for the bootcamp period?
Kelechi Chinaka
@ke1echi
i need that steady light and inrenet @Lumexralph
cool @Masd925 i've always wanted to learn chess
M-C-Haker
@M-C-Haker
@Lumexralph mutation(["hello", "Hello"]) should return true is incorrect when i reformat the code in that way
Manish Giri
@Manish-Giri