by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 20:09
    @krisb1220 banned @Gastony
  • May 14 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 22:38
    @bjorno43 banned @real-action
  • Feb 01 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
Aman Kumayu
@aman-kumayu
@HowdyHero may be you should switch to another web hosting service.
piteto
@piteto
This isn't something that has an easy, obvious answer
HowdyHero
@HowdyHero
@piteto thanks for suggestion
CamperBot
@camperbot
howdyhero sends brownie points to @piteto :sparkles: :thumbsup: :sparkles:
:cookie: 183 | @piteto |http://www.freecodecamp.com/piteto
Sorin Ruse
@sorinr
@HowdyHero have you deleted the wordpress files and folders? what file do your web server point to? some index.php or your uploaded index.html?
Ian Gracia
@iangracia
whats up folks

// 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 (prop==="tracks") {
    id.tracks.push(value);
  }*/
  var get = collection["2468"].prop;
  return get;
}

// Alter values below to test your code
updateRecords(5439, "tracks", "kukhövve");
why is this not returning an array with "1999" and "little red corvette?"
Jorge
@flawedLogic506
hey whats up guys
Moisés Man
@moigithub
prop is a variable... NO dot notation with variables @iangracia
CamperBot
@camperbot
moigithub sends brownie points to @iangracia :sparkles: :thumbsup: :sparkles:
:cookie: 346 | @iangracia |http://www.freecodecamp.com/iangracia
Jorge
@flawedLogic506
lol .. cbot is crazy, giving out brownies to everyone
Ian Gracia
@iangracia
how do you mean ? @moigithub
piteto
@piteto
@iangracia With variables, we have to use bracket notation: var get = collection["2468"][prop];
CamperBot
@camperbot
piteto sends brownie points to @iangracia :sparkles: :thumbsup: :sparkles:
:cookie: 347 | @iangracia |http://www.freecodecamp.com/iangracia
Ian Gracia
@iangracia
its still returning the whole collection object @piteto
piteto
@piteto
It should return ["1999", "Little Red Corvette"]
Moisés Man
@moigithub
@OrangeKulture its cuz his name have "thanks" on it
Ian Gracia
@iangracia
i want it just to return the array with "1999" and "little red corvette?"
piteto
@piteto
What are you hoping to return?
Ian Gracia
@iangracia
@piteto
piteto
@piteto
Yeah, that's what it returns
Ian Gracia
@iangracia
not for me
piteto
@piteto
  var get = collection["2468"][prop]; // ["1999", "Little Red Corvette"]
Ian Gracia
@iangracia
ill try refreshing the page
Jorge
@flawedLogic506
@moigithub no it doesnt
Moisés Man
@moigithub
@OrangeKulture gracia
CamperBot
@camperbot
moigithub sends brownie points to @orangekulture :sparkles: :thumbsup: :sparkles:
:cookie: 471 | @orangekulture |http://www.freecodecamp.com/orangekulture
Ian Gracia
@iangracia
nope still returning the whole object
Moisés Man
@moigithub
see ?? well missing an "s"
Jorge
@flawedLogic506
gracia is not thanks
gracias is
Ian Gracia
@iangracia
exactly @OrangeKulture
CamperBot
@camperbot
piteto sends brownie points to @iangracia :sparkles: :thumbsup: :sparkles:
api offline
piteto
@piteto
Yes it is :) lol
Jorge
@flawedLogic506
so ... @moigithub thank
CamperBot
@camperbot
orangekulture sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 3651 | @moigithub |http://www.freecodecamp.com/moigithub
piteto
@piteto
I don't know where you're looking at the code
Jorge
@flawedLogic506
lol
Moisés Man
@moigithub
but bot takes that as a thanks..
Jorge
@flawedLogic506
@moigithub than
hahah .. oh man .. lets send him back to class
Moisés Man
@moigithub
some1 had a name with "danke" on it.. he got free brownies too