Skip to content

WEBEU4 - Andre Michalowski - Week 3 - Day 1 - #1

Open
andremichalowski wants to merge 6 commits into
masterfrom
andre-michalowski-n
Open

andremichalowski wants to merge 6 commits into
masterfrom
andre-michalowski-n

Conversation

@andremichalowski

Copy link
Copy Markdown
Owner

No description provided.

@ropeks ropeks left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Okay, I don't have anything to add here actually.. This is amazing work and if you understand every line of it I'm really happy!

GJ Andre! Keep it up, my friend! :)

Comment thread assignments/arrays.js
Comment on lines +116 to +125
const lastVechicle = () => {
let inventoryLength = inventory.length;
for (let i = 0; i < inventoryLength; i++) {
let item = inventory[i];

// Check if last iteration of the array
if((i + 1) == (inventoryLength)) {
console.log(`${item['car_make']} ${item['car_model']}`);
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks really good!

Comment thread assignments/arrays.js
Comment on lines +161 to +167
//create new space "array" for sorted carModels
let carModels = [];
//loop i...
for (let i=0; i < inventory.length; i++) {
//create new new space to store generic values
let models = inventory[i]['car_model'];
//sort models and push to new new array;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

love how you comment everything

Comment thread assignments/objects.js
Comment on lines +34 to +35
speak: () => {
console.log("Hello, my name is", kennan.name,"!"); // Question #1 for Petar.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

arrow functions, nice!

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