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
Martialis39
@Martialis39
dont you get an error if it doesnt exist?
then you should be able to handle it in the request itself
Lemmy
@imnotlammy
User Story: I will see a placeholder notification if a streamer has closed their Twitch account (or the account never existed). You can verify this works by adding brunofin and comster404 to your array of Twitch streamers.
@Martialis39
pzoladkiewicz
@pzoladkiewicz
@imnotlammy for account closed check "data.status". Its == 422 if its closed
Lemmy
@imnotlammy
@pzoladkiewicz thanks
CamperBot
@camperbot
imnotlammy sends brownie points to @pzoladkiewicz :sparkles: :thumbsup: :sparkles:
:cookie: 282 | @pzoladkiewicz |http://www.freecodecamp.com/pzoladkiewicz
Lemmy
@imnotlammy
Will give it a try
Lemmy
@imnotlammy
        if (data.status !== 404) {
          var description = data.status;
        }
        else {
          var description = "user not found";
        }
This is what I tried, but doesnt seem to work @pzoladkiewicz
tried with data.status == 422 also
ok never mind fixed it =.=
pzoladkiewicz
@pzoladkiewicz
@imnotlammy was afk. Glad I could help :)
GenghisJohn2016
@GenghisJohn2016
Good morning all
noob question if I may, and of course I don't expect anyone to tell me the code, just a hint....
Sorin Ruse
@sorinr
@GenghisJohn2016 hi. whats the problem?
GenghisJohn2016
@GenghisJohn2016
I'm doing the first project, A Tribute Page. On the Sample there's a frame or border around everything that makes it look quite nice..... Any hints on how to achieve that? Here is a link to the project I'm doing (the example). https://codepen.io/FreeCodeCamp/full/NNvBQW/
I know we've covered this, it apparently has simply fallen out of my brain
Sorin Ruse
@sorinr
@GenghisJohn2016 border-radius: 6px; and also add your border thickness you wish
GenghisJohn2016
@GenghisJohn2016
div I presume?
sorry, was trying to give you kudos
I appreciate it
Sorin Ruse
@sorinr
@GenghisJohn2016 later after u solve the problem :)
dagao.wei
@liangshun
var collectionCopy = JSON.parse(stringify(collection));
var collectionCopy = JSON.parse(stringify(collection));
ReferenceError: stringify is not defined
change like this : var collectionCopy = JSON.parse(JSON.stringify(collection));
will be ok
lilyliterate
@lilyliterate
^
dagao.wei
@liangshun
this is a bug?

// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(JSON.stringify(collection));

// Only change code below this line
function updateRecords(id, prop, value) {

return collection;
}

lilyliterate
@lilyliterate
Does that work?
dagao.wei
@liangshun
if like this:

// Keep a copy of the collection for tests
var collectionCopy = JSON.parse(stringify(collection));

// Only change code below this line
function updateRecords(id, prop, value) {

return collection;
}

Al
@shimoal
Hi everyone! I'm kind of new to this and I'm working on the Random Quote Machine project. I really want to try to use an API, probably Quotes on Design, but I'm really struggling. Does anyone have any resources to learn more about how to use APIs?
dagao.wei
@liangshun
there will be error
lilyliterate
@lilyliterate
JSON.parse() and JSON.stringify() are from the same library of methods. You need to have JSON. before stringify.
Sorin Ruse
@sorinr
@shimoal take an inspiration from my pen here: http://codepen.io/sorinr/pen/VaJKrw
dagao.wei
@liangshun
@lilyliterate freecodecamp the 211th topic, no use JSON.stringify only use stringify
lilyliterate
@lilyliterate
What is the name of the topic?
dagao.wei
@liangshun
@lilyliterate name is “Record Collection"
lilyliterate
@lilyliterate
What exactly is the error it is passing you?
dagao.wei
@liangshun
ReferenceError: stringify is not defined
Al
@shimoal
@sorinr Thank you! It should be very useful to have a working example while I continue trying to figure this out haha
CamperBot
@camperbot
shimoal sends brownie points to @sorinr :sparkles: :thumbsup: :sparkles:
:cookie: 371 | @sorinr |http://www.freecodecamp.com/sorinr
dagao.wei
@liangshun
maybe one bug
lilyliterate
@lilyliterate
Stringify() is not a function. JSON.stringify() is.