Blog Archives

Alert javascript?

Tweet The alert() method displays an alert box with a specified message and an OK button.An alert box is often used if you want to make sure information comes through to the user.If you are getting bored with the built

Posted in Javascript, Node.Js Tagged with:

Closures?

Tweet Closures can be used to keep private data private from outside code. Found very interesting story to understand closures: There was a princess… function princess() { She lived in a wonderful world full of adventures. She met her Prince

Posted in Javascript Tagged with:

Controller ?

Tweet Controllers are the glue between models and views. Controllers receive events and input from views, process them (perhaps involving models), and update the views accordingly. The controller will add event listeners to views when the page loads, such as

Posted in Javascript Tagged with:

Closures ?

Tweet Closure: A closure is an inner function that has access to the outer (enclosing) function’s variables—scope chain. The closure has three scope chains: it has access to its own scope , it has access to the outer function’s variables,

Posted in Javascript Tagged with:

Disable the JavaScript Console

Tweet Disable the JavaScript Console: There are a few giant companies out there, namely Facebook and Netflix, who have decided to effectively disable a user’s ability to execute JavaScript console commands.  The decision was initially made by Facebook to prevent users from

Posted in Javascript Tagged with:

View ?

Tweet View is what’s presented to the users and how users interact with the app. The view is made with HTML, CSS, JavaScript and often templates. This part of your Chrome App has access to the DOM. For example, in

Posted in Javascript, Node.Js Tagged with:

Model ?

Tweet The Model is where all the application’s data objects are stored. Eg: a User Model that contains a list of users, their attributes, and any logic associated specifically with that model. A model doesn’t know anything about views or

Posted in Javascript, Node.Js Tagged with: ,

What Is MVC?

Tweet MVC is a design pattern that breaks an application into three parts: the data (Model), the presentation layer (View), and the user interaction layer (Controller). In other words, the event flow goes like this: 1.The user interacts with the

Posted in Javascript, Node.Js Tagged with: ,

Function() ?

Tweet Function() : Functions are actually objects. There is a built-in constructor function called Function() which allows an alternative way to create a function. The following three ways of defining a function are equivalent: >>> function sum(a, b) {return a

Posted in Javascript Tagged with:

Standard Built-in Objects ?

Tweet Standard Built-in Objects : All programming languages have internal (or built-in) objects that create the essential functionality of the language. Internal objects are the foundation of the language in which you write custom code that powers custom functionality based

Posted in Javascript Tagged with: