Files
2024-01-24 19:52:36 +01:00

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--