Skip to content

Ryan Walker - JavaScript-I#371

Open
rytwalker wants to merge 2 commits intobloominstituteoftechnology:masterfrom
rytwalker:master
Open

Ryan Walker - JavaScript-I#371
rytwalker wants to merge 2 commits intobloominstituteoftechnology:masterfrom
rytwalker:master

Conversation

@rytwalker
Copy link

Copy link

@kamry-bowman kamry-bowman left a comment

Choose a reason for hiding this comment

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

Great job on this, including the stretch! No issues I see!

let BMWAndAudi = [];
for (let i = 0; i < inventory.length; i++) {
if (
inventory[i]['car_make'] === 'BMW' ||

Choose a reason for hiding this comment

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

nice styling here

}
}
}
};

Choose a reason for hiding this comment

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

how about this pattern, since we're getting ahead of ourselves with this :)

function speak() {
     return `My name is ${this.name}`;
}
const parent = {
  name: 'Susan',
  age: 70,
  speak: speak,
  child: {
    name: 'George',
    age: 50,
    speak: speak,
    grandchild: {
      name: 'Sam',
      age: 30,
      speak: speak
    }
  }
};

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