Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Javascript: The good parts for humans (part 3)

378 views

Published on

Javascript - this property, arguments property

Published in: Technology
  • Be the first to comment

Javascript: The good parts for humans (part 3)

  1. 1. JavaScript The good parts for humans (part 3) B Anjaneyulu Reddy Email: anji.t6@gmail.com Twitter: @_anji www.evibe.in
  2. 2. Agenda Day 2 revisit this property arguments property
  3. 3. Method invocation pattern method: function stored as a property this - object containing method late binding Sample 1
  4. 4. Function invocation pattern this - global object [design mistake] inner functions this: refers to global object var that = this Sample 2
  5. 5. Constructor invocation pattern functions invoked with new prefix this - new object created no explicit return value - this is returned hidden link to function's prototype Sample 3
  6. 6. Apply invocation pattern apply method • two parameters o value for this o array of parameters this - first parameter of apply Sample 4
  7. 7. Questions?
  8. 8. Thank You

×