Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
The Build an Object Challenge, Part 11:08 with Dave McFarland
Time to put your knowledge to the test.
I've got a challenge for you, and it's going to require you to use all three of
the concepts you've learned in this course, loops, arrays, and objects.
You'll create a script that creates a bunch of student records,
then prints those records to a webpage.
I'll break this challenge into two steps.
For the first, you'll create a data structure to hold information about
a group of students.
This should be an array named students.
The array will hold a list of objects.
Each object will represent a student and should have the following properties.
Name, track, like iOS, Web Design, or Front End Development,
achievements, which should hold a number value, and a points property.
That holds the number of points the student has earned.
Make sure you create at least five student objects.
You can build your solution using the workspace on this page.
Just click the Launch Workspace button.
Create a new file, and add the array to that file.
In the next video I'll show you my solution.
You need to sign up for Treehouse in order to download course files.Sign up