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
Anh Nguyen
@tiremon112
@Lumexralph what i am suppose to do with this challenge i don't get it
it give me a big list and the instruction is so short. par and strokes will always be numeric and positive.
Ogundele Olumide
@Lumexralph
@tiremon112 what're your instructions?
Dylan
@dhcodes
@chungeric oh I get it now
cool cool
Eric Chung
@chungeric
@dhcodes Haha idk it feels too long... or is that how it's supposed to be
Anh Nguyen
@tiremon112
@Lumexralph wait let me try
Dylan
@dhcodes
@chungeric first time around yeah
once you learn regex it will be easier
Anh Nguyen
@tiremon112
@Lumexralph Aha probably have something to do with if and else
Dylan
@dhcodes
@chungeric also you can chain methods together. ex. var strArr = str.toLowerCase().split(" ");
Ogundele Olumide
@Lumexralph
@tiremon112 okay, try something out then
@deymow done anything?
Eric Chung
@chungeric
@dhcodes Lol just saw your solution on github. It's so smalll. How are you pushing the challenges to github?
Adeyemi Ademola
@deymow
@Lumexralph i have. I don't know how to show my solution rather than pasting the link
Anh Nguyen
@tiremon112
@Lumexralph wow i actually did it without getting help :+1:
Dylan
@dhcodes
@chungeric I made a github repo, cloned it to my computer, and then I copy/paste each challenge and instructions into a markdown file and then push it to github
it's mostly just for others and for trying es6
Ogundele Olumide
@Lumexralph
@tiremon112 you see, just lil patience
@tiremon112 :+1:
This message was deleted
Dylan
@dhcodes
brb
Ogundele Olumide
@Lumexralph

@deymow

3 backticks (```)
newline
your codes
3 backticks (```)

can you try this?

Adeyemi Ademola
@deymow
not working
@Lumexralph not working
Ogundele Olumide
@Lumexralph
@deymow it's a pseudocode remember? :point_up: January 13, 2017 5:20 AM
@deymow keep tring
Adeyemi Ademola
@deymow

function titleCase(str) {
  var changeFirst = str.split('/\s+/g');
  var seeArray = ' ';
  for(var i =0; i<changeFirst.length; i++){
    var collectArray = changeFirst[i].split(' ');
    var firstLetter = collectArray[0];
    var capitalLetter = firstLetter.toUpperCase();
    seeArray += changeFirst.splice(0, 1, capitalLetter).join(' ');

  }

  return seeArray;
}

titleCase("I'm a little tea pot");
@Lumexralph thanks
CamperBot
@camperbot
deymow sends brownie points to @lumexralph :sparkles: :thumbsup: :sparkles:
:cookie: 719 | @lumexralph |http://www.freecodecamp.com/lumexralph
Ogundele Olumide
@Lumexralph
@deymow var changeFirst = str.split('/\s+/g'); what're you trying to do here
Miguel Benevento
@KSMOknot
hey guys can anyone help out with indexOf problem?
Ogundele Olumide
@Lumexralph
@KSMOknot let's see
Miguel Benevento
@KSMOknot

function mutation(arr) {
  var str = arr[0].indexOf(arr);
  var txt = arr[1].indexOf(arr);
  if (str === txt){
    return true;
  }else {
    return false;
  }
}

mutation(["hello", "hey"]);
so this is my code and this is the problem'

Return true if the string in the first element of the array contains all of the letters of the string in the second element of the array.

For example, ["hello", "Hello"], should return true because all of the letters in the second string are present in the first, ignoring case.

The arguments ["hello", "hey"] should return false because the string "hello" does not contain a "y".

Lastly, ["Alien", "line"], should return true because all of the letters in "line" are present in "Alien".

Ogundele Olumide
@Lumexralph
@KSMOknot first of all , var str = arr[0].indexOf(arr); var txt = arr[1].indexOf(arr); is wrong
Miguel Benevento
@KSMOknot
should i remove [0] <-----
Ogundele Olumide
@Lumexralph
@KSMOknot you should just index arr since it's an array like this arr[0], arr[1] that will give you the two elements in array, then you can use a loop to go through the characters of the second element, using indexOf to check if it exists in the first element
Miguel Benevento
@KSMOknot
alright Ill try it out. thanks!
Justin
@tanpaopao
function queue(arr, item) {
  // Your code here
  arr.push(item);
  arr.shift();  
  return arr;  // Change this line
}

// Test Setup
var testArr = [1,2,3,4,5];

// Display Code
console.log("Before: " + JSON.stringify(testArr));
console.log(queue(testArr, 6)); // Modify this line to test
console.log("After: " + JSON.stringify(testArr));
Could someone help to solve this problem? If's difficult for me for the course stand in line.
heroiczero
@heroiczero
@tanpaopao gotta store the shifted item in a variable
Ogundele Olumide
@Lumexralph
@tanpaopao return arr.shift() this will return the first element, arr.shift() a value is returned, you either return it or store it , return arr; this will only return the array arr
Santiago
@santiduron
Hello campers Santiago here
Ogundele Olumide
@Lumexralph
@santiduron hi
Adeyemi Ademola
@deymow
@Lumexralph was tryin to split all words into array in small letter
Ogundele Olumide
@Lumexralph
@deymow why using regExp ?