Merge objects using $.extend() in jQuery

Have you ever come across a requirement in which you need merge many objects in one object? Okay let me clarify question in simpler words. Assume you have two objects as given below. object1 is defined as below, And another object is object2. Let us say you have to merge object2 in object1. Here merge … Continue reading Merge objects using $.extend() in jQuery

Advertisements

Revealing Module Pattern in JavaScript

We talked about Prototype Pattern in previous posts. You can read them at below link. Understanding Prototype Pattern in JavaScript Understanding Prototype Pattern in JavaScript: Part # 2 Revealing Module Pattern allows us to achieve Singleton object Private Public behaviour of functions and properties in the object. Let us consider the usual code we write. … Continue reading Revealing Module Pattern in JavaScript

Understanding Prototype Pattern in JavaScript: Part # 2

Recently we had a look on Understanding Prototype Pattern in JavaScript. I tried to explain this pattern in most simplified way. In this post we will get more dipper and see how prototype works in JavaScript. Putting it in simple words in prototype pattern, we create object using template of an existing object. In prototype … Continue reading Understanding Prototype Pattern in JavaScript: Part # 2