Menu Links

Wednesday, May 18, 2016

JavaScript - this

this Object

"this" object mean in object oriented language - refer to the current object.

But when we think in JavaScript language it's bit different as JavaScript is a functional oriented language not object oriented.

When ever we create a function in JavaScript, it mapped your all variables and inner function objects either in local or global memory area based on the scope of variables and inner functions. 

Every function Inside local memory heap create one more additional object called "this". it refer to window  object.

e.g.      function blogs()
            {

                 var x = 10;    // local variable
                 y = 20;     //global variable

                  var obj = function(){}// inner anonymous function

             } 

What is the understanding of above example.. ? How this function variable and functions are mapped to browser memory? What are the wrong statement written for the performance prospect? Where is my "this" object?

Tuesday, May 17, 2016

JavaScript -

Whenever we talk about JavaScript, we think it use for validation and some extend to manipulate DOM. Am i  correct?

Other than that now day's JavaScript is very popular and demanded in market to giving the preference on client centric applications. Because now industry looking the application not only be full of features or functionality also wants to develop application processing very first on browser and also wants to process almost all the business login in client side means browser instead of execute in server side  , So industry adopting different library or framework like JQuey.js , Node.js , Cofee Script , Angualr.JS and Backbone.JS.

All these library and framework build up on top of JavaScript.So million dollar of question here like how much we are comfortable in JavaScript ? Do we know how my Java Script interpreter in browser? When we write a function in Java Script what exactly happened? How browser handle my function?   all these questions , how related to library and framework?

On my coming post i will explain you all these questions step by step..follow me..