mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 01:00:13 -04:00
689 B
689 B
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 65796fac81f983127558f3f4 | Schritt 5 | 20 | step-5 |
--description--
Now, modify your existing print() call to print the value of the age key.
--hints--
You should use copper['age'] to access the value of the age key.
({ test: () => assert.match(code, /copper\s*\[\s*("|')age\1\s*\]/) })
You should call print() passing copper['age'] as argument.
({ test: () => assert.match(code, /^print\(\s*copper\s*\[\s*("|')age\1\s*\]\s*\)/m) })
--seed--
--seed-contents--
--fcc-editable-region--
copper = {
'species': 'guinea pig',
'age': 2
}
print(copper['species'])
--fcc-editable-region--