Skip to content

Juan mateus - #1

Open
animevirus wants to merge 2 commits into
masterfrom
Juan-Mateus
Open

animevirus wants to merge 2 commits into
masterfrom
Juan-Mateus

Conversation

@animevirus

Copy link
Copy Markdown
Owner

No description provided.

Comment thread assignments/arrays.js
// 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(inventory[32])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Instead of logging the object, please log the car's year, make, and model as in the example above.

Comment thread assignments/arrays.js


console.log(inventory[49].car_model)
console.log(inventory[49].car_make)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Array[array.length - 1] is another way of accessing the last element of an array.

Comment thread assignments/arrays.js
carModels.push(inventory[i].car_model) ;

}
console.log(carModels)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please sort all the car model names into alphabetical order and log the results in the console.

Comment thread assignments/arrays.js
// ==== Challenge 3 ====
// The marketing team wants the car models listed alphabetically on the website. Sort all the car model names into alphabetical order and log the results in the console
let carModels = [];
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.

Please remove all console.logs that are not needed.

Comment thread assignments/arrays.js

// ==== Challenge 5 ====
// The car lot manager needs to find out how many cars are older than the year 2000. Using the carYears array you just created, find out how many cars were made before the year 2000 by populating the array oldCars and logging it's length.
let oldCars = [];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Using the carYears array you just created, find out how many cars were made before the year 2000 by populating the array oldCars and logging it's length.

Comment thread assignments/arrays.js

// ==== Challenge 5 ====
// The car lot manager needs to find out how many cars are older than the year 2000. Using the carYears array you just created, find out how many cars were made before the year 2000 by populating the array oldCars and logging it's length.
let oldCars = [];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Challenge 6

Return an array that only contains BMW and Audi cars. Once you have populated the BMWAndAudi array, use JSON.stringify() to show the results of the array in the console.

let anotherFunction = (param) => {
return param;
};
anotherFunction("Example");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remember to console.log your functions to test the results you intended.

let add = (param1, param2) => {
return param1 + param2;
};
add(1,2);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remember to console.log your functions to test the results you intended.

let subtract = (param1, param2) => {
return param1 - param2;
};
subtract(1,2);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remember to console.log your functions to test the results you intended.

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(kennan.speak());
done

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please remember to remove all variables that are not used or comment lines that are used for personal notes.

Comment thread assignments/objects.js
// console.log(kennan.speak());
done

// Antonietta loves math, give her the ability to multiply two numbers together and return the product. Use the console.log provided as a hint.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please complete Challenge 3 and 4 in your objects.js file.

Comment thread assignments/objects.js
// ==== Challenge 3: Object Methods ====
// 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(kennan.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.

In order to complete this challenge, you will have to rename your past objects.

@ghost ghost 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.

Requested Improvements

Please note all comments I have made in your code. Also, please remember to complete all MVP goals.

Questions
If you have any questions over this assignment, feel free to ask them during our standup meeting.

Rating: {1-3}
1

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.

1 participant