- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Apuntes sobre Eloquent JavaScript
        jcalonso edited this page May 11, 2012 
        ·
        13 revisions
      
    Página para ir recolectando apuntes interesantes para comentar en las reuniones de jsuc3m.
Comentarios de Adolfo en su blog
Presentación con los apuntes de Israel sobre los temas 2 y 3
Presentación con los apuntes de Israel sobre los temas 2 y 3
- delete jsproperty
- The inoperator:prop in objORfor(var prop in obj)
- Array methods: splice, slice, push, pop, shift
- Comparing dates with: > < ==
- arguments
- Es útil comprobar en los métodos que los parámetros sean del tipo deseado y con contenido válido para evitar errores
- Se puede usar try-catch para gestionar los errores y throw para indicar que ha habido un error
- El try-catch se puede utilizar también en recursiones para finalizar la ejecución (finaliza la iteración actual y todas las anteriores)
- usage of the applymethod
- apply method
- 
Two ways of creating objects 
- 
Access to the object properties: dot notation VS. [propName] 
- 
typeof,hasOwnProperty
- 
Using the prototypeof an object
- 
How to declare attributes in a function: using this.propORvar prop
- 
Introduction to Objects II: use the name "property" in 2.4