Skip to content

Objects Started#1

Open
bykristea wants to merge 4 commits intomasterfrom
kristea-gamel
Open

Objects Started#1
bykristea wants to merge 4 commits intomasterfrom
kristea-gamel

Conversation

@bykristea
Copy link
Owner

started creating intern objects

started creating intern objects
mvp met for object and array
challenge 3 on array.js was incorrect.
Copy link
Collaborator

@theryanclausen theryanclausen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

let models = inventory[i].car_model;
carModels.push(models);
carModels.sort();
console.log(carModels);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Careful with what is happening inside this for loop. Remember, everything between the brackets is happening for every iteration between 0 and inventory.length-1. Send me a dm if you can figure out what should go outside the loop.

oldCars.push(carYears[i]);
}
}
console.log(oldCars);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the instructions carefully. This challenge was looking for the old car count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants