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
Ben Hart
@Benjmhart
I'm getting the object on ready.
I just can't call the wikisearch function from the console.
and the object has an error, but I think that's because it only is running a blank search term
which i can't test because I can't call the function from the console
arugh
ok, so there's a problem with how I'm passing my search term
iso
@iso1048
i've never called a function from the console so can't help you there sorry
Ben Hart
@Benjmhart
@gothamknight - isn't that what the first like 100 exercises are? it's basically a console
fefo360
@fefo360
@KoniKodes thanks
CamperBot
@camperbot
fefo360 sends brownie points to @konikodes :sparkles: :thumbsup: :sparkles:
:cookie: 398 | @konikodes |http://www.freecodecamp.com/konikodes
iso
@iso1048
@Benjmhart typing myFunction() into the console gives me an error
Ben Hart
@Benjmhart
is it a not defined error?
iso
@iso1048
yep
Ben Hart
@Benjmhart
yeah thats what I got... oh well I'll try some more tomorrow
have a good one, thanks for your time
iso
@iso1048
no problem
Richard
@rylew0925
I am stuck on the "Make Object Properties Private" lesson
var Car = function() {
  // this is a private variable
  var speed = 10;

  // these are public methods
  this.accelerate = function(change) {
    speed += change;
  };

  this.decelerate = function() {
    speed -= 5;
  };

  this.getSpeed = function() {
    return speed;
  };
};

var Bike = function() {

  // Only change code below this line.

};
var gear;

this.setGear = function(x) {
  gear = x;
};
this.getGear = function() {
  return gear;
};

var myCar = new Car();

var myBike = new Bike();
Not sure what I did wrong
Markus Kiili
@Masd925
@rylew0925 The code you wrote needs to be inside the constructor function. Not after it.
Richard
@rylew0925
So I move the closing bracket to the very bottom?
Markus Kiili
@Masd925
@rylew0925 Move it before the myCar and myBike lines.
Richard
@rylew0925
I didn't work
Markus Kiili
@Masd925
@rylew0925 Post the code again.
Richard
@rylew0925

var Car = function() {
  // this is a private variable
  var speed = 10;

  // these are public methods
  this.accelerate = function(change) {
    speed += change;
  };

  this.decelerate = function() {
    speed -= 5;
  };

  this.getSpeed = function() {
    return speed;
  };
};

var Bike = function() {

  // Only change code below this line.

};
var gear;

this.setGear = function(x) {
  gear = x;
};
this.getGear = function() {
  return gear;
};

var myCar = new Car();

var myBike = new Bike();
Markus Kiili
@Masd925
@rylew0925 Your constructor still ends here:
var Bike = function() {

  // Only change code below this line.

};
Richard
@rylew0925
Oh duh
@Masd925 Thanks!
CamperBot
@camperbot
rylew0925 sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4490 | @masd925 |http://www.freecodecamp.com/masd925
linkin-park
@linkin-park
@rylew0925 hi
Carlos Nah
@RA9
Hi
GabriRa
@GabriRa
I have never use node + react/express. How can i use the data I send with express .get()?
santhoshbalaguru001
@santhoshbalaguru001
i cannot able to add background image
heroiczero
@heroiczero
@santhoshbalaguru001 missing ; inbackground:url( "https://exp.cdn-hotels.com/hotels/1000000/20000/16200/16135/1c2a3bbe_z.jpg")
Pascal Clanget
@Gh05d
Anybody else really hated that Twitch.tv Viewer Project? Finally been able to finish it, but it was really a pain in the ass :angry: If anybody wants to check my solution out: https://codepen.io/Gh05d/full/gGaVBo/
heroiczero
@heroiczero
@Gh05d Well it looks good. Nice Job :+1:
Pascal Clanget
@Gh05d
@heroiczero thx :smile:
CamperBot
@camperbot
gh05d sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1749 | @heroiczero |http://www.freecodecamp.com/heroiczero
Elizabeth Paul
@Kowalatam
@Gh05d looks way better than mine :+1:
Long Nguyen
@longnt80
@Gh05d what do you hate about it?
Munkhmanlai
@munkhmanlai

[{"GOV":[
{
"date": "2014-01-01T16:00:00.000Z",
"value": 5800,
"volume": 1
},
{
"date": "2014-01-06T16:00:00.000Z",
"value": 5750,
"volume": 1
},
{
"date": "2014-01-07T16:00:00.000Z",
"value": 5375,
"volume": 56
},
{
"date": "2014-01-08T16:00:00.000Z",
"value": 5600,
"volume": 20
}
],{"MIK":[
{
"date": "2016-01-03T16:00:00.000Z",
"value": 12100,
"volume": 3056
},
{
"date": "2016-01-04T16:00:00.000Z",
"value": 12180,
"volume": 107
},
{
"date": "2016-01-05T16:00:00.000Z",
"value": 12200,
"volume": 1120
},
{
"date": "2016-01-06T16:00:00.000Z",
"value": 12200,
"volume": 2022
}
]}]

I have this JSON file and when you hit search button, it is supposed to search JSON file and "MIK","GOV" will be what is searched, those are company names and when MIK is written and hit search button it is supposed to display the latest price of MIK is there anyone can help me thanks

Pascal Clanget
@Gh05d
@longnt80 Mostly this fake twitch api that had to be used, because it made really complicated to fetch the data as I needed it and the restrictions from codepen.io. They prevented me from using import/export statements and so I had to use one single state, which was/is also really ugly.
santhoshbalaguru001
@santhoshbalaguru001
Long Nguyen
@longnt80
@Gh05d can you give more detail on how to use import/export statement?