Merge pull request #9034 from crashuniverse/fix/challenge-record-collection-instructions
Add challenge instruction for valid array operationspull/18182/head
commit
f2d710c75c
|
@ -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>."
|
||||
|
|
Loading…
Reference in New Issue