Repository navigation
Conversation
BrandonVilaychith
left a comment
Collaborator
There was a problem hiding this comment.
Overall project looks good and works as expected, not much to change in terms of code, I just left some notes in the review. The stretch looks great and I like the functions you created
// Project Rating
3
| * 4. | ||
| * 1. By default, "this" binds to the Window. That means the value of "this" will be the Window Object. | ||
| * 2. Implicit binding means "this" will be whatever called it. So, with example.this, "this" becomes "example". | ||
| * 3. When using a constructor function, "this" becomes the name of the function created. |
Collaborator
There was a problem hiding this comment.
Suggested change
| * 3. When using a constructor function, "this" becomes the name of the function created. | |
| * 3. When using a constructor function, "this" becomes the name of the object created. |
constructor functions return a new object
| * 1. By default, "this" binds to the Window. That means the value of "this" will be the Window Object. | ||
| * 2. Implicit binding means "this" will be whatever called it. So, with example.this, "this" becomes "example". | ||
| * 3. When using a constructor function, "this" becomes the name of the function created. | ||
| * 4. When using call or apply, "this" becomes the name of whatever is called/applied. e.g. If you reference a variable, the variale name becomes "this". |
Collaborator
There was a problem hiding this comment.
When using .call / .apply on a function you can bind this to an object also
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.