JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects The Build an Object Challenge, Part 2 Solution

Estefania Madrigal
Estefania Madrigal
Full Stack JavaScript Techdegree Student 2,147 Points

The below is what I did just for the first portion and there are no errors in console, but I only see Students.

var students = [ { name: 'Stefy', track: 'Front End Development', achievements: 777, points: 1414 }, { name: 'Alan', track: 'iOS Development with Swift', achievements: 80000, points: 90909 }, { name: 'Tere', track: 'PHP Development', achievements: 900, points: 70707 }, { name: 'Juan', track: 'Learn WordPress', achievements: '101012', points: '40404' }, { name: 'Dita', track: 'Rails Development', achievements: '945678', points: '91234' } ];

Please help

1 Answer

Steven Parker
Steven Parker
177,725 Points

There's no actual "code" here to do anything. This is just the creation and initialization of the "students" variable. If you're following along with the video, it may just be too soon to try running it.

I did notice that "achievements" and "points" are stored inconsistently — sometimes as numbers, and other times as strings. While this is not an error in itself, it could cause trouble later on.