Merge pull request #9034 from crashuniverse/fix/challenge-record-collection-instructions

Add challenge instruction for valid array operations
pull/9051/head
Eric Leung 2016-06-08 21:46:59 -07:00
commit ef0b8c7e41
1 changed files with 1 additions and 0 deletions

View File

@ -4502,6 +4502,7 @@
"For the given <code>id</code> in <code>collection</code>:",
"If <code>value</code> is non-blank (<code>value !== \"\"</code>) and <code>prop</code> is not <code>\"tracks\"</code> then update or set the <code>value</code> for the <code>prop</code>.",
"If the <code>prop</code> is <code>\"tracks\"</code> and <code>value</code> is non-blank, push the <code>value</code> onto the end of the <code>tracks</code> array.",
"If <code>\"tracks\"</code> is non-existent before you update it, create an empty array before pushing a track to it.",
"If <code>value</code> is blank, delete that <code>prop</code>.",
"Always return the entire collection object.",
"<strong>Note</strong><br>Don't forget to use <code>bracket notation</code> when <a href=\"accessing-objects-properties-with-variables\" target=\"_blank\">accessing object properties with variables</a>."