Skip to content

Instantly share code, notes, and snippets.

@bethsecor
Forked from stevekinney/1510-function-cfus.md
Last active March 30, 2016 17:09
Show Gist options
  • Save bethsecor/93279ec444f2fa5a255cfa6ab5258490 to your computer and use it in GitHub Desktop.
Save bethsecor/93279ec444f2fa5a255cfa6ab5258490 to your computer and use it in GitHub Desktop.

JavaScript Functions

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

  • Yes!

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

  • global window

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.

  • yes, beware of this in an asynchronous call.

I can explain the difference between call and apply.

  • sure

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

  • yes, we definitely need to use this for our gametime.

I can explain how bind works.

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