Open
Conversation
git add . git commit -m 'Final upload
RyanNFreeman
approved these changes
Jun 3, 2019
Collaborator
RyanNFreeman
left a comment
There was a problem hiding this comment.
Looks good. Hit mvp. Good work!
| Explicit binding is when the in-built methods call or apply are used. | ||
| 5. Why do we need super() in an extended class? | ||
|
|
||
| super () works with the extends keyword to simplify the process of binding classes together and making use of inheritance. Super makes sure that the parent constructor is accessible to the child's attributes. |
Collaborator
There was a problem hiding this comment.
Answers all look good. With super and extends, it helps to think of extends as the bridge and super is the car that moves things over.
|
|
||
|
|
||
|
|
||
|
|
|
|
||
| // Explain in your own words why `nestedfunction()` can access the variable `internal`. | ||
| /* */ | ||
| // Explanation: I believe because when nestedFunction() is invoked it has the ability to reach outside of its scope and access the internal variable even though it's defined outside of the function's scope. |
| } | ||
|
|
||
| function greeting(a,b){ | ||
| return `Hello ${a} ${b} , nice to meet you!` |
Collaborator
There was a problem hiding this comment.
This works, but I'd try to be a little more specific with your naming conventions. function greeting(firstName, lastName){return Hello ${firstName} ${lastName}, nice to meet you!}
| }; | ||
| } | ||
|
|
||
| arrCheck(graduates); |
Collaborator
There was a problem hiding this comment.
Nice job with the for loops.
|
|
||
| const animalNames = []; | ||
| zooAnimals.forEach(function(arr,index){ | ||
| animalNames.push("Name:" + " " + arr.animal_name + ", " + "Scientific:" + " " + arr.scientific_name + "."); |
Collaborator
There was a problem hiding this comment.
Cool. Yeah, whatever you feel more comfortable with, string interpolation or template literals (backticks) both get the job done.
|
|
||
| /*Test your volume and surfaceArea methods by uncommenting the logs below:*/ | ||
| console.log(cuboid.volume()); // 100 | ||
| console.log(cuboid.surfaceArea()); // 130 |
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.