Eric Bergh CS11 Sprint Challenge - #368
Open
Tmbrwolf wants to merge 5 commits into
Open
Conversation
brcampbell001
left a comment
There was a problem hiding this comment.
Nice job on Objects & Arrays! I saw the one method that was giving you trouble and it was just a little trouble in duplicate names.
|
|
||
| // The zoos need a list of all their animal's names converted to lower case. Create a new array named lowerCase and map over each name to convert them all to lower case. Log the resut. | ||
| let lowerCase = []; | ||
| zooAnimals.map(animal_name => {return animal_name.toLowerCase();}); |
There was a problem hiding this comment.
Your function should not also be called animal_name because that is the name of one of your keys. Name it like animal and then access animal_name through the function like so: animal => { return animal.animal_name.toLowerCase();
|
Overall, very nice job sir! It seems like you are getting the content here. There were a few issues that I highlighted. We will discuss them in our one-on-one. Thank you Eric! |
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.
No description provided.