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
Walid Ashri
@walidashri
@chhuang the qoutes it's " or '
@DestroyingLight add 'jshint esversion:6' as 1st line in ur code
Chang
@chhuang
sorry I may have put in the wrong quote, but the problem is not the quote
Stephen James
@sjames1958gm
@chazztizer If the element is not in args indexOf returns -1 and the function returns true which keeps element, if the element is in args then indexOf returns index and the functin returns false and drops the element
chazztizer
@chazztizer
@sjames1958gm Maybe i'm just dumb. Thanks though
CamperBot
@camperbot
chazztizer sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 4480 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Walid Ashri
@walidashri
@chhuang did u test the input if you try to type in the debugger should be triggered
@sjames1958gm Hello My Mentor, thanks
CamperBot
@camperbot
walidashri sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
Stephen James
@sjames1958gm
@DestroyingLight
return str.split(' ').reduce((accu, curr) => accu > curr.length ? accu : curr.length, 0);
CamperBot
@camperbot
:star2: 4481 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Stephen James
@sjames1958gm
@walidashri Hello -
DestroyingLight
@DestroyingLight
@walidashri I'm not getting it to work
@sjames1958gm I was doing something similar now
function findLongestWord(str) {

  const longest = str.split(' ').reduce( (accu, curr) => curr.length >= accu.length ? curr : accu);

  return longest.length;

}
it seems to pass the challenge
Moisés Man
@moigithub
return str.split(" ").sort().shift().length;
DestroyingLight
@DestroyingLight
@moigithub that sorts a alphabetically
I think
Moisés Man
@moigithub
yea.. probably need a callback on sort...
.sort((a,b)=>a.length-b.length)
DestroyingLight
@DestroyingLight
something I'm stuck between trying to make code pure, brief, with the least variables possible, AND making it readable
sometimes*
Walid Ashri
@walidashri
@DestroyingLight /*jshint esversion: 6 */
DestroyingLight
@DestroyingLight
thanks @walidashri ! no warnings now
CamperBot
@camperbot
destroyinglight sends brownie points to @walidashri :sparkles: :thumbsup: :sparkles:
:cookie: 674 | @walidashri |http://www.freecodecamp.com/walidashri
Luis Felipe López G.
@luishendrix92
@DestroyingLight const findLongestWord = str => Math.max(...str.split(' ').map(w => w.length))
Dominic Muttel
@domuttel
Can someone explain Record Collection to me a bit more then they have written?
I take it when given the parameters are passed I have to add information provided to the obj
Dominic Muttel
@domuttel
Am I meant to update the object before I start?
Chang
@chhuang
@walidashri https://jsfiddle.net/pe46d6tp/1/ you can try it in there
Terryd12345
@Terryd12345
hey has anyone done smallest common multiple in the intermediate javascript scripting section that can help me out?
__mifflin__
@cdrainxv
@walidashri: Overkill, no? :point_up: November 22, 2016 7:28 PM Single line comment //. Come and join us at the lazy table. :smile:
c0d0er
@c0d0er
@walidashri thanks!
CamperBot
@camperbot
c0d0er sends brownie points to @walidashri :sparkles: :thumbsup: :sparkles:
:cookie: 675 | @walidashri |http://www.freecodecamp.com/walidashri
Walid Ashri
@walidashri
@cdrainxv shut up
blob
@chhuang
yoojuu
@yoojuu
Screen Shot 2016-11-22 at 9.46.11 PM.png
Hi! I was wondering why I couldn't do return checkProp[myObj]; in the function to get the same result
Chang
@chhuang
@walidashri so my question is why is the animal variable not defined when you comment the console.log line out?
Terryd12345
@Terryd12345
@domuttel It wants you to write a function that takes some inputs and checks some parameters in the JSON file which will then update the JSON file
Dominic Muttel
@domuttel
@Terryd12345 OK so this will take a bit of work!
Terryd12345
@Terryd12345
@domuttel Yeah the way its written is a bit confusing but basically just use some if/else statements to check the conditions and then put the correct info in if its true
Emerson
@DikoFaji
how can i use the function inside an argument??
function findElement(arr, func) {

  var num = 4;
  return func;
}

findElement([1, 2, 3, 4], function(num){ return num % 2 === 0; });
Arnaud Casamé
@arnaudcasame
@DikoFaji by its name
Dominic Muttel
@domuttel
^ assign it to a variable?