From 4d001de7b839560703f11d742f8e3a3f2c2ba8b6 Mon Sep 17 00:00:00 2001 From: Max Ono Date: Thu, 30 Jun 2016 11:53:10 -0700 Subject: [PATCH] Update description of Record Collection code challenge. --- .../basic-javascript.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index bbb56f5a6e..0994d97e47 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -4517,14 +4517,14 @@ "id": "56533eb9ac21ba0edf2244cf", "title": "Record Collection", "description": [ - "You are given a JSON object representing (a small part of) your record collection. Each album is identified by a unique id number (its key) and has several properties. Not all albums have complete information.", - "Write a function which takes an id, a property (prop), and a value.", - "For the given id in collection:", - "If prop does not contain the key \"tracks\", then update or set the value for that incomplete prop.", - "If prop does not contain the key \"tracks\" before you update it, create an empty array before pushing a track to it.", - "If prop does contain the key \"tracks\" and its value is non-blank, then push the value onto the end of its existing tracks array.", - "If value is blank, delete that prop.", - "Always return the entire collection object.", + "You are given a JSON object representing a part of your musical album collection. Each album has several properties and a unique id number as its key. Not all albums have complete information.", + "Write a function which takes an album's id (like 2548), a property prop (like \"artist\" or \"tracks\"), and a value (like \"Addicted to Love\") to modify the data in this collection.", + "If prop isn't \"tracks\" and value isn't blank, update or set the value for that record album's property.", + "Your function must always return the entire collection object.", + "There are several rules for handling incomplete data:", + "If prop is \"tracks\" but the album doesn't have a \"tracks\" property, create an empty array before adding the new value to the album's corresponding property.", + "If prop is \"tracks\" and value isn't blank, push the value onto the end of the album's existing tracks array.", + "If value is blank, delete that property from the album.", "Hints
Use bracket notation when accessing object properties with variables.", "Push is an array method you can read about on Mozilla Developer Network.", "You may refer back to Manipulating Complex ObjectsIntroducing JavaScript Object Notation (JSON) for a refresher."