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
:star2: 9174 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Stephen James
@sjames1958gm
@fez994 What do you mean use it outside the function? I guess you could make the variable "global".
That would probably be considered bad form.
Federico Dente
@fez994
It means that var g only exsist inside of that function, if i want to use it outside of it i can't
Stephen James
@sjames1958gm
@fez994 True, but if you called a function from within the click handler you could pass the value to it.
What are you wanting to do with 'g'? Perhaps there is a different way
Daniel Simeonov
@dbsimeonov
Guys If I'm creating a page which the different sections are kind of a slider effect, which approach is better, to do the animation with a class, or to control it true javascript and style them from there?
I started with javascript styles but I think when it comes with lots of content it will be nasty code
kerafyrm02
@kerafyrm02
use both
Liam Docherty
@liamdocherty
Hi all, very useful video I found https://youtu.be/gVXcqO9A1vo
Nate Mallison
@NJM8
Can anyone give some feedback on my tictactoe game? https://www.natethedev.com/FreeCodeCampFrontEndProjects/ticTacToe/ The computer is fairly easy to beat, I haven't decided if I am going to make it harder or not
Rob
@PGFracing
Good morning on www.pgfracing.com at the bottom of the page on Desktop the border has padding can’t figure out why?
Will Foster
@Will5592
Do you mean the white space in the footer on the right handside?
Moisés Man
@moigithub
use ur browser devtools.. inspect element to check
Rob
@PGFracing
I got it fixed thanks for looking at had an extra </div> tag was issue
I don’t know how to get the dev tools feature working in Google Chrome
Will Foster
@Will5592
press f12
Stephen James
@sjames1958gm
@PGFracing or option command i on mac
Rob
@PGFracing
thanks @sjames1958gm
CamperBot
@camperbot
pgfracing sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9175 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
Rob
@PGFracing
I have 8 warnings
or 8 red x and 5 warnings
Will Foster
@Will5592
Hi all, Just got onto the build a calculator challenge, coded up the HTML and CSS quickly and now am onto the JS. I want to do this without jQuery, but not really got any idea of where to start. I'd rather not follow a guide but feeling a bit lost as to where to start. I've made a few variables to store inputs and hopefully will output them, but does anyone have a suggestion/resource that might assist without providing the answer?
Rob
@PGFracing
Error parsing header X-XSS-Protection: 1; mode=block; report=https://www.google.com/appserve/security-bugs/log/youtube: insecure reporting URL for secure page at character position 22. The default protections will be applied. Getting this error?
Darren
@DarrenfJ
@coderNewby good point! thanks for that heh lol!
CamperBot
@camperbot
darrenfj sends brownie points to @codernewby :sparkles: :thumbsup: :sparkles:
:cookie: 142 | @codernewby |http://www.freecodecamp.org/codernewby
Danny Chan
@chandanny
camperbot hello
Hoang Duc Quan
@BlazingRockStorm
can somebody help me with my function delete, please: BlazingRockStorm/FCCRecipe@a199c2d
it always return message that the dishes are null
Danny Chan
@chandanny
@BlazingRockStorm is render again?
Moisés Man
@moigithub

IF I recall,, there was like 3 ways to define a component state since i started to learn react
OLDEst: using getInitialState method

var InterfaceComponent = React.createClass({
  getInitialState : function() {
    return {      name : "chris"    };
  },
  render : function() {
    return <div>      My name is {this.state.name}    </div>;
  }
});

using es6 classes

class InterfaceComponent extends React.Component {
  constructor(props) {
    super(props);
    this.state = {    name : "chris"  };
  }
  render : function() {
    return <div>      My name is {this.state.name}    </div>;
  }
}

and es7 syntax without constructor, using "Property Initialiazers"

class InterfaceComponent extends React.Component {
    state = {    name : "chris"  };

  render : function() {
    return <div>      My name is {this.state.name}    </div>;
  }
}
Christopher McCormack
@cmccormack
@moigithub :thumbsup:
@moigithub I imagine that's a hint for @BlazingRockStorm in regards to this.dishes=[]; correct? :D
Moisés Man
@moigithub
:D
studentzero
@studentzero
Hello I'm trying to read a file but I get errors. I have this little program.

```var fs = require('fs')

fs.readFileSync('/nodeschool/learnyounode/io.txt')
var a = buf.toString;
console.log(a);```

var fs = require('fs')

fs.readFileSync('/nodeschool/learnyounode/io.txt')
var a = buf.toString;
console.log(a);
```
Stephen James
@sjames1958gm
@studentzero Are you sure about that path?
That is at the root of your file system
studentzero
@studentzero
No in homefolder.
Stephen James
@sjames1958gm
Then you probably need /home/user/nodeschool ...
studentzero
@studentzero
A yes I get a different error now. Great!
Christopher McCormack
@cmccormack
haha
progress
studentzero
@studentzero
lol
It says buffer not defined. But I think I put the tekst in the buffer with readFileSync?
Stephen James
@sjames1958gm
@studentzero You have to assign
buf = fs.readFileSync
studentzero
@studentzero
A I see.
var fs = require('fs')

fs.readFileSync('/home/futurebug/nodeschool/learnyounode/io.txt')
buf = fs.readFileSync;
var a = buf.toString;
console.log(buf);
```