Manning secrets of the javascript ninja nov 2009

Páginas: 146 (36464 palabras) Publicado: 21 de junio de 2011
Please post comments or corrections to the Author Online forum at http://www.manning-sandbox.com/forum.jspa?forumID=431

MEAP Edition Manning Early Access Program

Copyright 2009 Manning Publications

For more information on this and other Manning titles go to www.manning.com

Please post comments or corrections to the Author Online forum athttp://www.manning-sandbox.com/forum.jspa?forumID=431

Download at Boykma.Com

Table of Contents
1. Introduction ................................................................................................................... 1 The JavaScript Language ............................................................................................. 2 Writing Cross-Browser Code........................................................................................ 3 Best Practices ............................................................................................................ 5 Summary .................................................................................................................. 6 2. Testing and Debugging.................................................................................................... 7 Debugging Code ........................................................................................................ 7 Test Generation .......................................................................................................... 8 Building a Test Suite ................................................................................................. 10 Asynchronous Testing....................................................................................... 12 Summary ................................................................................................................. 13 3. Functions ..................................................................................................................... 14 Function Definition................................................................................................... 14 Anonymous Functions and Recursion ........................................................................... 15 Functions as Objects ................................................................................................. 17 Storing Functions.............................................................................................. 18 Self-Memoizing Functions .................................................................................. 18 Context ................................................................................................................... 20 Looping .......................................................................................................... 21 Fake Array Methods.......................................................................................... 22 Variable Arguments .................................................................................................. 22 Min/Max Number in an Array ............................................................................. 23 Function Overloading........................................................................................ 23 Function Length ............................................................................................... 24 Function Type .......................................................................................................... 26 Summary ................................................................................................................. 27 4.Closures ...................................................................................................................... 28 How closures work ................................................................................................... 28 Private Variables .............................................................................................. 29 Callbacks and Timers...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • The Secrets Of Silver Lake
  • The best of 2000 2009
  • The Five Secrets Of Project Scheduling
  • The Secrets Of The Saucers
  • The 10 secrets of leaders
  • The Secrets of Silver Lake
  • Informe Lectura No. 2
  • The secrets of the silver lake

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS