Collection Object
Lab
Week 6β7
Due Mar 8
Use this boilerplate to create a JS variable containing the entries for your collection project. Your folder structure should look like this:
π core-2-interaction/
ββ π lab/
ββ π projects/
ββ π 04_collection-object
ββ π index.html
ββ π assets
ββ π data.js
ββ π scripts.js
Object Structure
Your π data.js should only have an array named βdataβ containing your collectionβs dataset. Each array element should be an object representing a single entry and containing whatever metadata you decide is relevant to your project. Consider this example dataset describing the cars parked on the street outside of my studioβ¦
var data = [
{
make: 'Dodge',
model: 'Charger',
year: 2019,
},
{
make: 'Honda',
model: 'Element',
year: 2008,
},
{
make: 'Ford',
model: 'Escort',
year: 2013,
},
];
Your page should run without errors upon submission. Remember to use the console log to check for syntax errors!