Skip to content

CJ-JavaScript-I - #519

Open
cjbt wants to merge 14 commits into
bloominstituteoftechnology:masterfrom
cjbt:master
Open

CJ-JavaScript-I#519
cjbt wants to merge 14 commits into
bloominstituteoftechnology:masterfrom
cjbt:master

Conversation

@cjbt

@cjbt cjbt commented Nov 26, 2018

Copy link
Copy Markdown

Initial Pull Request @VivaCode

@cjbt

cjbt commented Nov 26, 2018

Copy link
Copy Markdown
Author

@VivaCode

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

MVP

set up project

  • Fork the project into your GitHub user account
  • Clone the forked project into a directory on your machine

Objectives

  • Objects
  • Arrays

Stretch

  • Refactor to Arrow Function Syntax
  • Stretch Conversion

Commits

Great

Rating: 3

Comment thread assignments/arrays.js Outdated
// 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();
for (let 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.

This can be done without a loop bc you don't need to return every car, just the last.

Comment thread assignments/arrays.js
}
}
console.log(JSON.stringify(BMWAndAudi));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job on this part!

Comment thread assignments/objects.js
"name": "Kennan",
"email": "[email protected],Kennan",
"gender": "M",
speak: ()=>"Hello, my name is Kennan!"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

great use of ES6 syntax


const exampleArray = [1,2,3,4];
const triple = exampleArray.map((num)=>num*3);
console.log(triple); No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Awesome job on Stretch!

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