Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Jose Diaz
@jsd540
ah that makes sense, is there a way to sync so the loop waits for a reply
Marc
@MWBauer
I need guidance.
Tom
@moT01
@jsd540 that won't be the last time you come across that problem, you might want to figure out how to debug it, i would have console.log the userNameList[i], and also console log the returned data
Marc
@MWBauer
How do I get text from a website for the Random Quote Generator?
Kaz Baig
@kbaig
@MWBauer You would need to find a quote API
Tom
@moT01
and you would see a list of all the names before any data @jsd540
ehutchllew
@ehutchllew
@jsd540 I haven't done a RESTful call inside a for loop in a while, but you could try creating a promise, then once you get a response from the service you resolve it, and I believe that will sort of "pause" the for loop iterations.
@jsd540 or wrap your RESTful API call inside of an IFFE.
Jose Diaz
@jsd540
@moT01 @ehutchllew thanks guys, I'm gonna re-think this, at least I know what the problem is now...
CamperBot
@camperbot
jsd540 sends brownie points to @mot01 and @ehutchllew :sparkles: :thumbsup: :sparkles:
:cookie: 359 | @ehutchllew |http://www.freecodecamp.com/ehutchllew
:cookie: 878 | @mot01 |http://www.freecodecamp.com/mot01
Tom
@moT01
@jsd540 that forEach loop should fix it, should just need to swap out one line
but, there's other ways as well
ehutchllew
@ehutchllew
@jsd540 Yeah try what @moT01 is saying, the forEach looks at the actual value in the indices of the array rather than a 'counter'.
Jose Diaz
@jsd540
@ehutchllew @moT01 yes, I will try a for each... Dear diary today I learned about for each :) Thanks guys.
CamperBot
@camperbot
jsd540 sends brownie points to @ehutchllew and @mot01 :sparkles: :thumbsup: :sparkles:
api offline
api offline
B
@B-keen
'''
CamperBot
@camperbot
:bulb: to format code use backticks! ``` more info
B
@B-keen
```
return collection[5439].album;
Ken Haduch
@khaduch
@MomchilDeus - looks good :point_up: October 13, 2017 6:13 AM - my last nit-pick - I would like to have either a set of links at the bottom for the different sections, or the nav button frozen to the top of the screen when you scroll up? I know that I'm just being lazy... the site looks great. I really like that timeline presentation!
Jay Vora
@jayvora92

hello everyone I have a quick question. any help would be appreciated.
right now

else if({{Page Path}}.indexOf("/xyz/abc") >= 0) return "test";  
but actually i want  to return "test" on /xyz/abc/#employer.

how do i add that hash. If it helps I already have a variable URL fragment = "employers". what would be the best way to add it

Roge
@RogeMateos
hello
i need some help with flex box
anyone thatcan help me please
alteducation
@alteducation
@RogeMateos yeah
Roge
@RogeMateos
hey @alteducation how are you
alteducation
@alteducation
@RogeMateos tell me i will help you with your flexbox isuue
@RogeMateos do you have it on codepen?
Roge
@RogeMateos
there is something i don’t understand here , there is section class main as a container flexbox then i have article class featured and caside class sidebar
Tom
@moT01
@jayvora92 what's the hash for, can you put it in the variable
"#employers"
this is the example
B
@B-keen
return collection[5439].album;
Roge
@RogeMateos
whati dont understand is featured and aside does not have width
B
@B-keen
I was wondering in the record collection challenge why the above code is not returning anything
Roge
@RogeMateos
what makes them behave with different widths
Screen Shot 2017-10-13 at 19.07.24.png
Screen Shot 2017-10-13 at 19.07.24.png
Screen Shot 2017-10-13 at 19.07.24.png
alteducation
@alteducation
@RogeMateos yeah I just checked the featured has a flex value of 2 and aside has a value of 1
@RogeMateos that means they share the space in that ratio
Ken Haduch
@khaduch
@B-keen - is it not returning anything or not returning the correct thing to pass the challenge?
alteducation
@alteducation
@khaduch that is featured takes up 2/3 space and aside takes 1/3 space
@RogeMateos that is featured takes up 2/3 space and aside takes 1/3 space
Roge
@RogeMateos
ok just unlock 2 and 1 and same behavour