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
Christopher McCormack
@cmccormack
@greaneym but if I remade it now I would probably use more functional components
Ronique Ricketts
@RoniqueRicketts
Hey guys i'm back
IMG_20170907_134246.jpg
IMG_20170907_134254.jpg
Margaret Greaney
@greaneym
is it ok to look at this? I haven't been looking at people's codepens. But I need to get clearer examples , so I will look. Hope that is all right.
Ronique Ricketts
@RoniqueRicketts
This is what outside looks like right not in Jamaica
Christopher McCormack
@cmccormack
@greaneym that's why I shared it :) it's not one of the actual FCC projects, just something I made to help me parse some documents for work
Gersho
@Gersho
@greaneym it's ok to look at everything, as long as you don't copy stuff you don't understand
Tiago Correia
@tiagocorreiaalmeida
image.png
what would be the best way to center the text with the icon right now?
Christopher McCormack
@cmccormack
@greaneym and I hate to be that guy but... their documentation is really great https://facebook.github.io/react/docs/hello-world.html
Tiago Correia
@tiagocorreiaalmeida
used display inline on the divs
Margaret Greaney
@greaneym
@cmccormack @Gersho , thanks for helping I will learn some more
CamperBot
@camperbot
greaneym sends brownie points to @cmccormack and @gersho :sparkles: :thumbsup: :sparkles:
api offline
api offline
Christopher McCormack
@cmccormack
@greaneym they use React themselves, eating their own dogfood as they say, so they're the best resource for best practices
Gersho
@Gersho
aren't they the ones who made it anyway ?
Ronique Ricketts
@RoniqueRicketts
lol api is offline unless I use it :)
Margaret Greaney
@greaneym
I am signing off now to look at more examples. thanks and bye.
Christopher McCormack
@cmccormack
@Gersho yup thus the eating their own dogfood :)
Ronique Ricketts
@RoniqueRicketts
@greaneym later Margs
Christopher McCormack
@cmccormack
@greaneym gl :thumbsup:
njordomir
@njordomir

Quick question: if I pass the following array into the function njordsFunction(args):

([1, 2, 3], [5, 2, 1, 4])

How can I reference the first and second arrays? I've been doing this for a few months now, so I feel stupid asking it, but when I do args[0] and args[1], I just get 1 and 2 the first two elements in the first array.

korzo
@korzo
@njordomir arguments[0], arguments[1]
njordomir
@njordomir
@korzo Somtimes it's the dumbest mistakes that stump us the most. Thanks!
CamperBot
@camperbot
:cookie: 459 | @korzo |http://www.freecodecamp.com/korzo
njordomir sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
Randell Dawson
@RandellDawson

@njordomir - will the function only expect to see two arguments? If so, then declare the function as:

function njordsFunction(arg1, arg2) {

then you can use arg1 and arg2 variables

Sue
@coding-sue-true
is there anyone?
Ronique Ricketts
@RoniqueRicketts
sup
Sue
@coding-sue-true
I am using bootstrap 4, and I want to open a modal only when the button is clicked and not onload
I went to bootstrap modal methods and I copied the code, but it always opens onload.. does anyone knows how to change this only to open onclick?
I want to use JS methods and not data-*
Gersho
@Gersho
i don't know the specifics, but you could have some code hide it, and then make it reappear onclick ? @coding-sue-true
legendinraze
@legendinraze
var myStr = "backslash\\ tab\t tab\t carriage-return\r new-line\n"; // Change this line
what's wrong
Coy Sanders
@coymeetsworld
dont use the words
use the escape characters to the right of the words in the table @legendinraze . You're basically doing a search and replace
e.g. replace tab with \t
Simon Cordova
@gbsimon87
Anybody from London looking for a developing job?
@coding-sue-true, still need help?
legendinraze
@legendinraze
thx @coymeetsworld
Coy Sanders
@coymeetsworld
no problem
juni
@junipberry
guys, when does one use the arrow, =>
is it a shorthand for something
korzo
@korzo
@junipberry it's arrow function
new in ES6
juni
@junipberry
yes, but what does it do?
Jason Luboff
@JLuboff
Its a shorthand method for functions
korzo
@korzo
@junipberry It's more-less shortcut for old function syntax with few exceptions
Jason Luboff
@JLuboff
It essentially eleminates the need for the word function