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
CamperBot
@camperbot
mstellaluna sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3874 | @khaduch |http://www.freecodecamp.org/khaduch
mstellaluna
@mstellaluna
I was out of ideas tbh
n1zzy
@n1zzy

can someone please explain why

truthCheck([{"user": "Tinky-Winky", "sex": "male", "age": 0}, {"user": "Dipsy", "sex": "male", "age": 3}, {"user": "Laa-Laa", "sex": "female", "age": 5}, {"user": "Po", "sex": "female", "age": 4}], "age");

should return false ??!
https://www.freecodecamp.org/challenges/everything-be-true

is it because of the zero? shouldn't a number be negative to be false?
Markus Kiili
@Masd925
@n1zzy Only falsy number is 0.
Well, NaN is falsy also.
n1zzy
@n1zzy
oh ok... makes sense now, was confused 'cuz when I used array.indexOf() would always return -1 when nothing found, but would've made more sense if it returned 0... now I understand why we use array.indexOf() > -1
Ken Haduch
@khaduch
@n1zzy - but if .indexOf() returned 0 then it would indicate that your value was in the first location in the array. -1 isn't an array location.
n1zzy
@n1zzy
@khaduch thats also true :smile:
hensn5250
@hensn5250
@n1zzy do you have a codepen?
@n1zzy check your messages
n1zzy
@n1zzy
yes, why?
Adetunji Adegbite
@twonjee2002
thanks @n1zzy @ndburrus
CamperBot
@camperbot
twonjee2002 sends brownie points to @n1zzy and @ndburrus :sparkles: :thumbsup: :sparkles:
api offline
:star2: 2205 | @ndburrus |http://www.freecodecamp.org/ndburrus
Norvin Burrus
@ndburrus
@twonjee2002 you're welcome! enjoy :sparkles:
Marc
@MWBauer
@khaduch no i am not familiar with looking at the dev tools
Nate Mallison
@NJM8
I have a question about the front end cert, how do your projects get tested? I see the website makes sure have passed all the algorithm challenges, but does someone actually review your websites and make sure they meet the user stories?
Marc
@MWBauer
Visual studio is the same type of program as Codepen, just offline, right?
Lisa Copeland
@lisacopeland
@MWBauer visual studio is an editor for code - like microsoft word is an editor for documents
Visual studio lives on your computer with all of your code files
Marc
@MWBauer
oy.
Lisa Copeland
@lisacopeland
codepen lives on an internet site with your code files
Marc
@MWBauer
I hate that Codepen doesn't allow me to use local image files.
if it does, I'm doing something wrong.
mstellaluna
@mstellaluna
@khaduch had to do other tweaks to get it working and displaying correct but this is the final product gradient generator
Lisa Copeland
@lisacopeland
It's really easy to get started using visual studio on your computer - just down load it and then export your codepen files to your machine.
Are you using pure javascript?
Marc
@MWBauer
I have d/l. I have it open. So just d/l codepen files and start working?
Pure?
Lisa Copeland
@lisacopeland
are you writing just javascript? or es6? or react? or angular?
Marc
@MWBauer
So far as I know I'm not messing with anything else. Just the FCC and I've been walking through Deitel's Javascript for programmers book.
mstellaluna
@mstellaluna
@MWBauer codepen doesn't allow you to upload files unless you pay for pro service. BUT you can use a service like postimage.io that's free, you can upload your imgs and it give you the direct HTML link to them
Marc
@MWBauer
thanks @mstellaluna
CamperBot
@camperbot
mwbauer sends brownie points to @mstellaluna :sparkles: :thumbsup: :sparkles:
:cookie: 640 | @mstellaluna |http://www.freecodecamp.org/mstellaluna
mstellaluna
@mstellaluna
@MWBauer honestly its what I do for codepen, just postimage doesn't upload video files , images only
Lisa Copeland
@lisacopeland
use the export button at the bottom of your codepen to download a zip of your codepen to your machine
it will download a zip of your codepen project and you can unzip it into a local subdirectory
Then you can start visual studio and open the local subdirectory
You will see all of the files for your project - to run it just open index.html in chrome
Marc
@MWBauer
thx @lisacopeland
Lisa Copeland
@lisacopeland
no prob! After you get done editing your files you can try to create a github repo and commit the files!
Marc
@MWBauer
could someone take a look and help me figure out how to call the hr style?
Norvin Burrus
@ndburrus
@NJM8 when you complete projects, you submit them using codepen...
Xapuu
@Xapuu
Hey guys any idea for library like this one https://simplemde.com , but that is editing html, i need to emebd some text editor for generating e-mails in website
Nate Mallison
@NJM8
@ndburrus yes but who looks at them.