Skip to content

[Tommy Collison] JavaScript-1#262

Open
tommycollison wants to merge 8 commits into
bloominstituteoftechnology:masterfrom
tommycollison:master
Open

[Tommy Collison] JavaScript-1#262
tommycollison wants to merge 8 commits into
bloominstituteoftechnology:masterfrom
tommycollison:master

Conversation

@tommycollison

Copy link
Copy Markdown

First commit, paging @John-Spraul. Will work more on it during project time.

@tommycollison

tommycollison commented Aug 15, 2018

Copy link
Copy Markdown
Author

For challenge 5 (
df020c9) the code is throwing an error in my terminal (that TypeError: Cannot read property 'car_make' of undefined but I've successfully done this before, so I can't tell what the issue is here.

@John-Spraul John-Spraul left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • Git stuff
  • Completed Assignment

Good work! 🎉 👏

Comment thread assignments/arrays.js
console.log();
let carModels = []

for (i = 0; i < inventory.length - 1; i++) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should be inventory.length rather than inventory.length - 1

Comment thread assignments/arrays.js
console.log();


for (i = 0; i < inventory.length - 1; i++) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔂

Comment thread assignments/arrays.js

let oldCars = [];

for (i = 0; i < inventory.length; i++) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

don't forget the let in front of i = 0

Comment thread assignments/arrays.js
oldCars.push(inventory[i]);
}
}
console.log(oldCars.sort());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you figure out the problem you were having?

Comment thread assignments/objects.js
// Give Kennan the ability to say "Hello, my name is Kennan!" Use the console.log provided as a hint.
// console.log(kennan.speak());

console.log(Keenan.speak);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚰️ <- Kennan

Comment thread assignments/objects.js
// Antonietta loves math, give her the ability to multiply two numbers together and return the product. Use the console.log provided as a hint.
//console.log(antonietta.multiplyNums(3,4));

console.log(Antonietta.multiplyNums(3,4));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

could also define the method here, such as Antonietta.multiplyNumbs = (a,b) => {...

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