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
MikeBeers
@MikeBeers
from the console window. I type game.computer.cpArr and it is undefined.
colorpanda
@colorpanda2011
@moigithub Thank you, I got it!
CamperBot
@camperbot
colorpanda2011 sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 1461 | @moigithub |http://www.freecodecamp.com/moigithub
Jamil Akhtar
@frontender007
anyone can help with record collection challenge please ?
chegnar
@chegnar
@moigithub Thanks man :)
CamperBot
@camperbot
chegnar sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 1462 | @moigithub |http://www.freecodecamp.com/moigithub
Moisés Man
@moigithub
@MikeBeers try with debugger keyword
MikeBeers
@MikeBeers
@moigithub I need a little bit more info ????
Moisés Man
@moigithub
@frontender007 post what u did ? ( not the original code)
Jamil Akhtar
@frontender007
// Setup
var collection = {
    2548: {
      album: "Slippery When Wet",
      artist: "Bon Jovi",
      tracks: [ 
        "Let It Rock", 
        "You Give Love a Bad Name" 
      ]
    },
    2468: {
      album: "1999",
      artist: "Prince",
      tracks: [ 
        "1999", 
        "Little Red Corvette" 
      ]
    },
    1245: {
      artist: "Robert Palmer",
      tracks: [ ]
    },
    5439: {
      album: "ABBA Gold"
    }
};





// 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) {

  if ( value !== "" && prop !== "tracks") 
  {
     collection.id[prop] = value;
  }

  else if ( value !== "" && prop === "tracks")
   {
     collection.id[prop].push(value);
   }

  else if ( collection[id].hasOwnProperty(prop) === false )
   {
      collection.id[prop] = [];
   }
   else if ( value === "") 
   {
       delete collection.id[prop];
   }

  return collection;
}

// Alter values below to test your code
updateRecords(5439, "artist", "ABBA");
Here is my code @moigithub
Moisés Man
@moigithub

@MikeBeers
example...

function sayHello(name){
     debugger;
     console.log("hello" + name);
}
sayHello("me");

and run the code.. it will STOP where debugger keyword is located
then u can clicky some buttons to navigate ur code.. on ur browser/devtools
or use console.log(variable) cuz ur data is LOADED in memory

3jM310
@3jM310

please someone can help me with this i need to convert from fahrenheint to celsius a i've tried differents ways and i dont got nothhing function convertToF(celsius) {
var fahrenheit;
// Only change code below this line

// Only change code above this line
return fahrenheit;
}

// Change the inputs below to test your code
convertToF(30);

Moisés Man
@moigithub

@frontender007 id is variable.. NO dot notation collection.id[prop]
also this

 else if ( collection[id].hasOwnProperty(prop) === false )
   {
      collection.id[prop] = [];
   }

should NOT be an else if.. but a nested if.. on the "above" tracks check BEFORE push..

@3jM310 diff ways like ???
Dan Couper
@DanCouper
@3jM310 what have you tried
Jamil Akhtar
@frontender007
thanks @moigithub
CamperBot
@camperbot
frontender007 sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 1464 | @moigithub |http://www.freecodecamp.com/moigithub
3jM310
@3jM310
i tried putting this var fahrenheit = ( celsius *(5/9) + 32); and and i got nothing @DanCouper
Diego Mayer
@Chrono79
@3jM310 isn't it 9/5? and delete the var keyword, fahrenheit is already declared above
Richard
@codecampergg
can someone give me an example of a "lookup table", please?
Jamil Akhtar
@frontender007
@moigithub
Diego Mayer
@Chrono79
var lookup = {
  1: "a",
  2: "b",
  3: "c"
}
@codecampergg
bitgrower
@bitgrower
the way I remember it is to think of the 2 scales from freezing to boiling ... one is 0-100, the other is 32 to 212 ... so which is smaller in numbers ... celsius ... so you have to multiply it by a number greater than 1, that is 9/5 ... then, for the 32 ... I think ... okay if celsius is 0 degrees at freezing, and f is 32 ... what do I have to do if celsius is 0? add 32 ... so I can synthesize the equation from information I have
Jamil Akhtar
@frontender007

// Setup
var collection = {
    2548: {
      album: "Slippery When Wet",
      artist: "Bon Jovi",
      tracks: [ 
        "Let It Rock", 
        "You Give Love a Bad Name" 
      ]
    },
    2468: {
      album: "1999",
      artist: "Prince",
      tracks: [ 
        "1999", 
        "Little Red Corvette" 
      ]
    },
    1245: {
      artist: "Robert Palmer",
      tracks: [ ]
    },
    5439: {
      album: "ABBA Gold"
    }
};





// 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) {

  if ( value !== "" && prop !== "tracks") 
  {
     collection[id][prop] = value;
  }

  else if ( value !== "" && prop === "tracks")
   {
     collection[id][prop].push(value);
   }

  else if ( collection[id].hasOwnProperty(prop) === false )
   {
      collection[id][prop] = [];
   }
   else if ( value === "") 
   {
       delete collection[id][prop];
   }

  return collection;
}

// Alter values below to test your code
updateRecords(5439, "artist", "ABBA");
don't know whats wrong now
@moigithub
3jM310
@3jM310
ok so i need to write this fahrenheint = (celsius * (9/5) + 32); @DanCouper is that right?
Jamil Akhtar
@frontender007
didn't understand which one should be a nested if
Diego Mayer
@Chrono79

@frontender007 you need to create tracks before trying to push
nest this:

if ( collection[id].hasOwnProperty(prop) === false )
   {
      collection[id][prop] = [];
   }

before using push

Dan Couper
@DanCouper
@3jM310 what's it returning/what's the error
3jM310
@3jM310

i tried putting this function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
fahrenheint = (celsius * (9/5) + 32);

// Only change code above this line
return fahrenheit;
}

// Change the inputs below to test your code
convertToF(30);

Moisés Man
@moigithub
@3jM310 variable name is not correct
Diego Mayer
@Chrono79
@3jM310 you have one n more
Jamil Akhtar
@frontender007
thanks @moigithub got it now
CamperBot
@camperbot
frontender007 sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:warning: frontender007 already gave moigithub points
Moisés Man
@moigithub
:+1: @frontender007
colorpanda
@colorpanda2011
I stuck on Introducing JavaScript Object Notation JSON
anyone finished that?
Diego Mayer
@Chrono79
yes
colorpanda
@colorpanda2011

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"]

}

];

Sophia Diaz-Infante
@sophiaelisa
@colorpanda2011 did you figure out the card challenge?
colorpanda
@colorpanda2011
yep
3jM310
@3jM310

@DanCouper i tried this function convertToF(celsius) {
var fahrenheit;
// Only change code below this line
fahrenheint = (celsius * (9/5) + 32);

// Only change code above this line
return fahrenheit;
}

// Change the inputs below to test your code
convertToF(30); and i need to do this convertToF(0) should return a number
convertToF(-30) should return a value of -22
convertToF(-10) should return a value of 14
convertToF(0) should return a value of 32
convertToF(20) should return a value of 68
convertToF(30) should return a value of 86

Diego Mayer
@Chrono79
@colorpanda2011 myMusic is an array of objects
@3jM310 fahrenheint should be fahrenheit
colorpanda
@colorpanda2011
I tried to put it in array
Sophia Diaz-Infante
@sophiaelisa
I am soo close to having it solved, however 2 of my sequences are not returning the correct answer