« Home | Javascript patterns / thoughts. » | Data structures and algorithms. » | Chess client interface in YUI. » | Unicode, things to know. » | Differences between myisam and innodb » | Removing unnecessary .svn folders from » | Java collections and generics. » | Mysql cluster & replication. » | Finding prime numbers with in a given number n. » | Javascript performance. » 

Monday, June 09, 2014 

ECMA Script5

ECMA script5
-------------


Mainly defines few changes to the object / property code. which allows to make a object immutable.

- Now properties can be blocked from being extended using
  - preventExtensions
  - seal
  - freeze

Clearly explained here by John - http://ejohn.org/blog/ecmascript-5-objects-and-properties/

We now have native bind() method on functions which takes in a context and returns a function which binds the function on which it is called to the scope given to bind.

We also have map / reduce function in array class.

They also made undefined immutable.