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.
ADVANCED (MAYBE?)  JAVASCRIPT TECHNIQUESRajasekharan Vengalilbit.ly/avranju | @avranjuDeveloper EvangelistMicrosoft Corpor...
MyDEMO!         super-         duper          eval        console
FUNCTIONSFunctions are first classcitizens      •Callbacks      •call, apply      •Context
OO IN JAVASCRIPT - CLASSESDesigning classes      •Member data &       methods      •Access control      •A note on “new”
CLOSURESClosures      •What are they?      •Some use cases       •Private members       •Backing data for accessors
VARIABLE HOISTING & SCOPESStatic typers beware!        •Only functions form variable scope        •Variables get “hoisted”...
JAVASCRIPT OBJECT NOTATION (JSON)JSON       •What is JSON?       •Browser support for        JSON       •JSON-P
DEBUGGINGSome pointers     •IE developer tools     •“debugger” keyword     •“console.log” is your      friend
ResourcesSome LinksRead “JavaScript Patterns” by Stoyan StefanovEval ConsoleShameless Plugbit.ly/avranjurajave@microso...
Upcoming SlideShare
Loading in …5
×

Advanced JavaScript techniques

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to comment

Advanced JavaScript techniques

  1. 1. ADVANCED (MAYBE?) JAVASCRIPT TECHNIQUESRajasekharan Vengalilbit.ly/avranju | @avranjuDeveloper EvangelistMicrosoft Corporation
  2. 2. MyDEMO! super- duper eval console
  3. 3. FUNCTIONSFunctions are first classcitizens •Callbacks •call, apply •Context
  4. 4. OO IN JAVASCRIPT - CLASSESDesigning classes •Member data & methods •Access control •A note on “new”
  5. 5. CLOSURESClosures •What are they? •Some use cases •Private members •Backing data for accessors
  6. 6. VARIABLE HOISTING & SCOPESStatic typers beware! •Only functions form variable scope •Variables get “hoisted” •Declare everything at the top •Use immediate functions to limit scope of locals in global code
  7. 7. JAVASCRIPT OBJECT NOTATION (JSON)JSON •What is JSON? •Browser support for JSON •JSON-P
  8. 8. DEBUGGINGSome pointers •IE developer tools •“debugger” keyword •“console.log” is your friend
  9. 9. ResourcesSome LinksRead “JavaScript Patterns” by Stoyan StefanovEval ConsoleShameless Plugbit.ly/avranjurajave@microsoft.com @avranju

×