Skip to content

Instantly share code, notes, and snippets.

@marlomajor
Forked from stevekinney/1510-function-cfus.md
Last active March 31, 2016 01:23
Show Gist options
  • Save marlomajor/3327d65f5638dba0bca050ab9dba8a86 to your computer and use it in GitHub Desktop.
Save marlomajor/3327d65f5638dba0bca050ab9dba8a86 to your computer and use it in GitHub Desktop.

JavaScript Functions

I can explain the difference between function declarations and function expressions.

  • YES. Pretty pumped about knowing the difference also. Fixed a huge problem in my Gametime project because I was using a function expression when I should have been using a declaration.

I can explain what the value of this is in a normal function.

  • Yes.

I can explain what the value of this is when called from the context of an object.

  • Yes.

I can explain how to explicitly set the value of this in a function.

I can explain the difference between call and apply.

I can describe an case where I might need to use bind to avoid polluting the global scope.

I can explain how bind works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment