Pages

Thursday, December 8, 2011

Unknowns of JavaScript

                You will probably find some thing unknown to you if you are not an expert JavaScript programmer and not familiar with JavaScript meta programming techniques! If that is the case, i can assure you that you will find something new and useful in at least one of the following posts.

Redefine function within function to avoid unnecessary if else blocks in JavaScript - this post is about self optimizing JavaScript functions.
Identifying weather JavaScript function is used as a constructor - this tells you the difference when a JavaScript function is called with new keyword and as a regular function call.
Public, Private Methods and Variables in JavaScript - as you know there are no public or private keywords in JavaScript to define the scope as in Java. This is about doing it even without those keywords.
Retain values between function calls without using global variables - normally we use global variables to retain some value between function calls. this tells you how to do it without using global variables.