Skip to content

Keith Kennedy #148

Open
Kennedykid1995 wants to merge 13 commits intobloominstituteoftechnology:masterfrom
Kennedykid1995:master
Open

Keith Kennedy #148
Kennedykid1995 wants to merge 13 commits intobloominstituteoftechnology:masterfrom
Kennedykid1995:master

Conversation

@Kennedykid1995
Copy link
Copy Markdown

I just started on the objects.js creating the objects for interns

mixelpixel and others added 10 commits April 15, 2018 01:05
- match header style for Stretch tasks from last week's curriculum.
- console.logging assignment decription
- line 14 last sentence
- line 22 period
- Kenna >>> Kennan
I just started on the objects.js creating the objects for interns
I have finished the object.js, had some trouble on the last question before the stretch, not sure if I did it right cause I did get it to multiply, but I did not put Antonietta.math(3, 4), just put math(3, 4)
I dont really understand this section, just cause really am not sure on writing for loops
I have gotten challenge 4 done as well as challenge 2
// ==== Challenge 1 ====
// The dealer can't recall the information for a car with an id of 33 on his lot. Help the dealer find out which car has an id of 33 by logging the car's year, make, and model in the console log provided to you below:
console.log(`Car 33 is a *car year goes here* *car make goes here* *car model goes here*` );
console.log(`Car 33 is a 2011 "jeep" "Wrangler"` );
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The answer is technically correct but you were supposed to reference it using code.

  1. Which code do you use to get a specific index value out of an array?
  2. Which code do you use to get a specific value out of the property of an object?

The same goes for Challenge 2 below.

// The dealer needs the information on the last car in their inventory. What is the make and model of the last car in the inventory? Log the make and model into the console.
let lastCar = 0;
console.log();
console.log(`Last car is a "Lincoln" "Town Car"` )
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Which code would you use to get the last index value of an array?

carYears.push(inventory[i].car_year);
}
console.log(carYears);
console.log();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You don't need to put an empty console.log

Made some changes to car array assingment
function math(x, y){
return x*y;
}
console.log(math(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.

Check out the hint they've given to you:
console.log(antonietta.multiplyNums(3,4));

  1. How would you name your function based on the hint?
  2. What are the ways of assigning a new property to the existing object (Antonietta)?

Check out the links below:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects

https://stackoverflow.com/questions/1184123/is-it-possible-to-add-dynamically-named-properties-to-javascript-object

http://www.dyn-web.com/tutorials/object-literal/properties.php

added in my code, it doesn't work I am still trying to figure it out, the Alphabetical, <2000, and BMW and Audi
I completed the Alphabet Challenge and now I have two more to complete, but Im gonna work on the Assingment 2 before finishing up this one
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.

4 participants