Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 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

This server caches data to lower the request rate. To prevent abuses this server accepts GET requests only, and serves only routes /users/:user, /channels/:channel, and /streams/:stream

None of them returns the list of channels followed by a user.

list of channels is in "user" object

This server caches data

How often does it refresh data?

No idea, maybe someone else knows about this but as far as I know it doesnt return it
anyone familiar with firebase?
I think I got it wrong
I don't need to parse the whole list of user's subscriptions and see whether FCC is online or not, I just need to create random list of channels with FCC in it and check them, right?
Hey guys
do you think a 256gb macbook pro 15' 2016 with touchpad + iPad pro 4g 128gb for 2260$ is a good deal?
William Watts
@ehutchllew @moT01 nope no luck...I can console log an output but i can't seem to get an action out of any class I use https://codepen.io/Braillon7/pen/RxBWbY
William Watts
"transform: translate(0, 100%);" is hiding the task-form...once commented out you can see it
Dan Lafferty
@Braillon7 I'm looking at your code and your jQuery call is trying to add an "active" class to all elements with the 'task-form' class. You don't have .active defined in your CSS. Perhaps you're confusing it with the active selector? A class named "active" is not the same as ":active". Also, your CSS has invalid comments in it - // is for JavaScript. CSS needs /* */
I'm having trouble figuring out what you're trying to accomplish by scanning above - if you can summarize, I'm happy to take a closer look
@Braillon7 fixed it. Sorry couldn't respond, internet went out.
@Braillon7 @DanLaff Like Dan said, you have to change .task-form:active to .task-form.active
Dan Lafferty
If it's a matter of opening/closing the form with a sliding motion, remove the transition and transform code from your CSS and change your jQuery to:
$(".add-circle, .close-btn").on("click", () => $(".task-form").slideToggle());
William Watts
wow you guys were a lot of help...I feel like an idiot. I thought I already tried that before as I originally had &.active and it wasn't working. This was a simple as a fix as I assumed it would be and believe it or not I spent all day trying to figure it out lol
@ehutchllew thank you
braillon7 sends brownie points to @ehutchllew :sparkles: :thumbsup: :sparkles:
:cookie: 368 | @ehutchllew |http://www.freecodecamp.org/ehutchllew
William Watts
@DanLaff thank you
Brandon Blackwell

hello, if i have an object like this

randomObject : {
name: 'randomName',
age: 34

is there a way I can update name without knowing that the object is randomObject?

William Watts
hmmm how come @DanLaff didn't get any brownie points? give the man his brownie points lol
Dan Lafferty
I'm not a camper, just visiting to practice coding while helping others in the process
@Radlerz1 Object.keys() should help you with that
William Watts
lol oh...well thank you kind Sir! @DanLaff
braillon7 sends brownie points to @danlaff :sparkles: :thumbsup: :sparkles:
api offline
Dan Lafferty
Happy to help :)
Brandon Blackwell
_id: "5a5fa8998e0cb9206c0d33a7",
__v: 0,
twitter: {
id: "786553098864963584"
what about that? how do I update name without knowing its twiter? it could be google, facebook, or twitter. Object.keys returns some random stuff I tried
Object.keys returns this [ '$__', 'isNew', 'errors', '_doc', '$init' ]
Dan Lafferty
@Radlerz1 You can also use for...in:
let myObj = {
  randomObject1: {
    name: "randomName",
    age: 34

for (let obj in myObj) {
  if (myObj[obj].name === "randomName") console.log(myObj[obj].age); // 34 is logged
And with Object.keys():
console.log(myObj[Object.keys(myObj)].age) // 34 gets logged
Kent Saeteurn

Hello all. I'm currently working on "Map the Debris" under Advanced Algorithm Scripting.

Can anyone tell me how to correctly round the results? I think my code is correct (for finding the orbital period and returning it as a hash nested inside an array), however, rounding the orbital period is off. It seems freecodecamp is using different rounding techniques?

for example, for sputnik, the result is 86397.158, and they round it off to 86400 (I can write the code to round it off this way)
however, for iss, the result is 5557.034, and they round it off to 5557 (I can also write the code to round it off this way as well)
further, for hubble, the result is 5733.86, to which they round off to 5734.

I'm confused. How exactly should I round off the results here? The instructions says to round off to the nearest whole number. The nearest whole number for 86397.158 to me is 86397, but they rounded off to 86400.

Can anyone help?

Rajat Parajuli
hey guys!
Need some help
How do I transition display: none to display: block
@rjpj2016 you can't transition a display
@rjpj2016 would have to be visibility
plus mess with the dimensions
Rajat Parajuli
I transitioned max-height.
@ehutchllew Thanks !
rjpj2016 sends brownie points to @ehutchllew :sparkles: :thumbsup: :sparkles:
:cookie: 369 | @ehutchllew |http://www.freecodecamp.org/ehutchllew
Ken Haduch
@sansae - I just used Math.round on the result of the calculation? I think that it worked just fine.
Ken Haduch
@sansae - if you are still having problems, could you post your code? I just re-checked and my solution is returning the correct answers using only Math.round.
Kaz Baig

Interesting JS snippet making the rounds:

const a = {};
a.abuseCoercion = 0;
a.valueOf = function() {
  return this.abuseCoercion;

console.log(a == 1 && a == 2 && a == 3); // true

It was from an interview question asking, "Can (a == 1 && a == 2 && a == 3) ever evaluate to true?"

const are block-scoped