According to Mozilla Developer Network: Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure ‘remembers’ the environment in which it was created. Another short description: Whenever you see the function keyword within another function, the inner function has access to variables in the outer function. That […]
10 + 10 + ’10′ – result is “2010″. ’10′ + 10 + 10 = “101010″ Difference between two declarations of methods. and Difference relates to perfomance. In first example method has to be created every time the constructor fucntion runs when method that declared with prototype is shared across all instances. What does this […]
There are so many variations of finding bound events to elements in jQuery and a lot of them just work in old versions. To be honest I can’t remember this line cause it looks ridiculous. I don’t understand why it is so complicated and even changes from old versions. In stackoverflow I found that “In jQuery […]
The Deferred object is a chainable utility object created by calling the jQuery.Deferred() method. It can register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.