Skip to content

Dan Sherman - #1

Open
shrmn wants to merge 6 commits into
masterfrom
dan-sherman
Open

shrmn wants to merge 6 commits into
masterfrom
dan-sherman

Conversation

@shrmn

@shrmn shrmn commented Jan 24, 2019

Copy link
Copy Markdown
Owner

No description provided.

@BrandonVilaychith BrandonVilaychith left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

Comment thread assignments/this.js
* 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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

Comment thread assignments/this.js
* 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".

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

When using .call / .apply on a function you can bind this to an object also

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