CJ-JavaScript-I - #519
Open
cjbt wants to merge 14 commits into
Open
Conversation
added 11 commits
November 26, 2018 11:19
Author
VivaCode
reviewed
Nov 27, 2018
VivaCode
left a comment
There was a problem hiding this comment.
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
| // 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++) { |
There was a problem hiding this comment.
This can be done without a loop bc you don't need to return every car, just the last.
| } | ||
| } | ||
| console.log(JSON.stringify(BMWAndAudi)); | ||
|
|
| "name": "Kennan", | ||
| "email": "[email protected],Kennan", | ||
| "gender": "M", | ||
| speak: ()=>"Hello, my name is Kennan!" |
|
|
||
| const exampleArray = [1,2,3,4]; | ||
| const triple = exampleArray.map((num)=>num*3); | ||
| console.log(triple); No newline at end of file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial Pull Request @VivaCode