An introduction to objects with more complicated properties
Your code is in a separate file for steps 1-5.
You are welcome to copy and paste any objects you created from the previous lessons into this one!
This is an empty object.
We use these as placeholders for later objects.
Add this code as a basis for your party
Name it what you want your party to be called
You can have any number of slots in your party, but must include at least two creatures and one empty object!
add a console.log( yourParty )
check to make sure the output is similar to the following
You may notice that we no longer can see the name of the variable within the object.
You can fix this by adding a Name, Nickname, or any other property you wish to add.
Created about 1 year ago
Teach coding to your students with MVCode Teach
MVCode offers an integrated product designed to teach coding to students.
Learn more about MVCode Teach