Back to Freecodecamp

Step 2

curriculum/challenges/english/blocks/workshop-space-mission-roster/694c84106e9023f289c03b84.md

latest784 B
Original Source

--description--

Your roster begins with a single commander astronaut. Create an object named firstAstronaut with the following properties:

KeyValue
id1
name"Andy"
role"Commander"
isEVAEligibletrue
priority3

--hints--

You should create a firstAstronaut variable.

js
assert.isDefined(firstAstronaut);

Your firstAstronaut should be an object.

js
assert.isObject(firstAstronaut);

Your firstAstronaut object should include the correct property values.

js
assert.deepEqual(firstAstronaut, { id: 1, name: "Andy", role: "Commander", isEVAEligible: true, priority: 3 });

--seed--

--seed-contents--

js
const squad = [];

--fcc-editable-region--

--fcc-editable-region--