Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
Diego Mayer
@Chrono79

@colorpanda2011 you have to add another object separated by a comma
reset the challenge, delete //Add record here, and paste this:

{
"artist": "Bon jowa",
"title": "yellow submarine",
"release_year": 1979,
"formats": ["CS", "8T", "LP"]
}

put a comma between the other object and this one

colorpanda
@colorpanda2011
That`s what I did now, still get wrong,

var myMusic = [
{
"artist": "Billy Joel",
"title": "Piano Man",
"release_year": 1973,
"formats": [
"CS",
"8T",
"LP" ],
"gold": true,

}
];

var myMusic =[
{
"artist": "Bon jowa",// Add record here
"title": "yellow submarine",
"release_year": 1979,
"formats": ["CS", "8T", "LP"]

}

];

Moisés Man
@moigithub
@colorpanda2011 should be something like [ {....} , {....} ]
an array with 2 object elements
Sophia Diaz-Infante
@sophiaelisa
all of my sequences are returning correctly, however both of my sequences that are supposed to return "1 Bet" are returning "1 Hold"
Moisés Man
@moigithub
@sophiaelisa on ur switch u should ONLY inc or dec count...
AFTER ur switch.. u should evaluate count variable. and return count + bet or hold.. (depending on count value )
3jM310
@3jM310
thanks @DanCouper @moigithub and @Chrono79 you are the best guys
CamperBot
@camperbot
3jm310 sends brownie points to @dancouper and @moigithub and @chrono79 :sparkles: :thumbsup: :sparkles:
:star2: 1232 | @chrono79 |http://www.freecodecamp.com/chrono79
:cookie: 147 | @dancouper |http://www.freecodecamp.com/dancouper
:star2: 1465 | @moigithub |http://www.freecodecamp.com/moigithub
colorpanda
@colorpanda2011
@moigithub you are right!
The key is the comma notation
Diego Mayer
@Chrono79
@colorpanda2011
var myMusic = [
{
  first object
},
{
  the object you created
}
];
colorpanda
@colorpanda2011
@Chrono79 thank you, you are right.
CamperBot
@camperbot
colorpanda2011 sends brownie points to @chrono79 :sparkles: :thumbsup: :sparkles:
:star2: 1233 | @chrono79 |http://www.freecodecamp.com/chrono79
Rana Amrit Parth
@ranaparth

Need help. ```var Person = function(firstAndLast) {
this.fullName = firstAndLast;
var arr = firstAndLast.split(' ');
this.firstName = arr[0];
this.lastName = arr[arr.length - 1];
return {
getFirstName: function() { return this.firstName; },
getLastName: function() { return this.lastName; },
getFullName: function() { return this.fullName; },
setFirstName: function(first) {
this.firstName = first;
},
setLastName: function(last) {
this.lastName = last;
},
setFullName: function(firstAndLast) {
this.fullName = firstAndLast;
var arr = firstAndLast.split(' ');
this.firstName = arr[0];
this.lastName = arr[arr.length - 1];
}
};
//setFullName(firstAndLast);
//return firstAndLast;
};

var bob = new Person('Bob Ross');
bob.getFullName();```

Moisés Man
@moigithub
comma is the array elements separator
@ranaamritparth backticks must be on its own line..
shift+enter to add new lines
colorpanda
@colorpanda2011
@moigithub yep, thank you very much
CamperBot
@camperbot
colorpanda2011 sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:warning: colorpanda2011 already gave moigithub points
Rana Amrit Parth
@ranaparth
var Person = function(firstAndLast) { this.fullName = firstAndLast; var arr = firstAndLast.split(' ');
Moisés Man
@moigithub
```js
code on next line
```
or
```html
code on next line
```
Diego Mayer
@Chrono79
@ranaamritparth only one backtick is for one line code
Rana Amrit Parth
@ranaparth
var Person = function(firstAndLast) {
    this.fullName = firstAndLast;
    var arr = firstAndLast.split(' ');
    this.firstName = arr[0];
    this.lastName = arr[arr.length - 1];
    return {
      getFirstName: function() { return this.firstName; },
      getLastName: function() { return this.lastName; },
      getFullName: function() { return this.fullName; },
      setFirstName: function(first) {
        this.firstName = first;
      },
      setLastName: function(last) {
        this.lastName = last;
      },
      setFullName: function(firstAndLast) {
        this.fullName = firstAndLast;
        var arr = firstAndLast.split(' ');
        this.firstName = arr[0];
        this.lastName = arr[arr.length - 1];
      }
    };
    //setFullName(firstAndLast);
    //return firstAndLast;
};

var bob = new Person('Bob Ross');
bob.getFullName();
Diego Mayer
@Chrono79
:+1:
Moisés Man
@moigithub
@ranaamritparth :+1:
Rana Amrit Parth
@ranaparth
Thanks @moigithub
CamperBot
@camperbot
ranaamritparth sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 1466 | @moigithub |http://www.freecodecamp.com/moigithub
Rana Amrit Parth
@ranaparth
need help with above code
Joe O.
@joffenhauser
hi guys I’m stuck on exercise 207 (Return Early Pattern for Functions)
Diego Mayer
@Chrono79
@ranaamritparth that's not good, this.nameOfTheMethod <- you need 6 of this
Joe O.
@joffenhauser
any body in here up for helping me figure it out??
Diego Mayer
@Chrono79
@joffenhauser do you have some code?
Rana Amrit Parth
@ranaparth
okay. let me try.
Moisés Man
@moigithub
@ranaamritparth getFirstName, getetc etc.. should be PUBlic functions/methods..
soo on the constructor.. u should use this keyword.. like
this.getFirstName = function(){......}
Dan Couper
@DanCouper
@ranaamritparth do not return from a constructor function.
anacou
@anacou
hey guys, how can I convert a switch statement into a lookup table?
and how do I call a lookup table "lookup"
Moisés Man
@moigithub
@joffenhauser the number represent how many brownies points u get.. is not really the exercise number :)
u get more brownie points when some1 thanks you or u complete more challenges
CamperBot
@camperbot
moigithub sends brownie points to @joffenhauser :sparkles: :thumbsup: :sparkles:
:cookie: 208 | @joffenhauser |http://www.freecodecamp.com/joffenhauser
Diego Mayer
@Chrono79
:point_up: 18 de junio de 2016 21:21 @anacou
the thing you have in case thing:, should be the object property name, and the value you have in that case, is the value of that property
Dan Couper
@DanCouper
@anacou (in answer to the second part) var lookup. Like var lookup = { foo: 1, bar: 2 }
shilpi verma
@shilpiverma509
Hi friends, I needed help in understanding the conditions required to "Truncate a String "
Moisés Man
@moigithub
@Chrono79 a q hora es en Argentina ? aca son las 7.40pm
Diego Mayer
@Chrono79
9.40