From b29432e26d7cd4053e1b02a2b284bc06315122c9 Mon Sep 17 00:00:00 2001 From: Priya Ranjan Singh Date: Wed, 8 Jun 2016 22:16:47 +0530 Subject: [PATCH] add challenge instruction for valid array operations --- .../01-front-end-development-certification/basic-javascript.json | 1 + 1 file changed, 1 insertion(+) 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 e368cebe7e..83e0d43ccb 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -4502,6 +4502,7 @@ "For the given id in collection:", "If value is non-blank (value !== \"\") and prop is not \"tracks\" then update or set the value for the prop.", "If the prop is \"tracks\" and value is non-blank, push the value onto the end of the tracks array.", + "If \"tracks\" is non-existent before you update it, create an empty array before pushing a track to it.", "If value is blank, delete that prop.", "Always return the entire collection object.", "Note
Don't forget to use bracket notation when accessing object properties with variables."