Skip to content

Ashwin Sundararajan - Completed objectives + stretch - #164

Open
ashwins93 wants to merge 7 commits into
bloominstituteoftechnology:masterfrom
ashwins93:master
Open

Ashwin Sundararajan - Completed objectives + stretch#164
ashwins93 wants to merge 7 commits into
bloominstituteoftechnology:masterfrom
ashwins93:master

Conversation

@ashwins93

Copy link
Copy Markdown

CS 12 - JavaScript I

@ashwins93 ashwins93 changed the title Ashwin Sundararajan - Work in progress Ashwin Sundararajan - Completed objectives + stretch Jun 25, 2018
Comment thread assignments/arrays.js
for (let i = 0; i < inventory.length; i++) {
if (inventory[i].id === 33) {
let car = inventory[i];
console.log(`Car 33 is a ${car.car_year} ${car.car_make} ${car.car_model}`);

@Nate152 Nate152 Jun 26, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think we needed to loop here. Could have made it even simpler by just saying:
console.log('Car 33 is a ${inventory[32].car_year} ${inventory[32].car_make} ${inventory[32].car_model')
I do like that you used the template literals though despite that they were not covered in the lecture

@Nate152

Nate152 commented Jun 26, 2018

Copy link
Copy Markdown

Overall great job as usual. I made a comment on the one very minor thing. The way that you did it is by no means wrong, but obviously its less efficient than simply console logging it. Finally a critique 😄

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