Understanding Prototype Pattern in JavaScript

I am writing this blog post from Bulgaria Sofia. I am here to attend Devreach conference organised by Telerik . In conference I had an opportunity to meet my great inspiration Dan Wahlin . I attended his session on “Patterns in JavaScript” and I must say it was one of the best technical session IContinueContinue reading “Understanding Prototype Pattern in JavaScript”

Variable Scope Chain in JavaScript

Before you start reading this post I recommend you to read Variable Scoping and Hoisting in JavaScript . In this post we will take a look on Scope Chain in JavaScript. Let us consider you have declare a variable globally as below, In above code variables are declared globally, in other words they are notContinueContinue reading “Variable Scope Chain in JavaScript”

Get it right: null and undefined in JavaScript

Well, whenever I talk to developers, I find them in confusion about null and undefined in JavaScript. In this post I try to simplify understanding of null and undefined in JavaScript. To start with null is language keyword and undefined in value of a variable. Both evaluates to value that indicates absence of a value.ContinueContinue reading “Get it right: null and undefined in JavaScript”

Variable Scoping and Hoisting in JavaScript

Variable Scoping in JavaScript is quite different than other programming languages like C. In this post we will learn variable scoping in JavaScript. Simply putting, Scope of a JavaScript variable is within region of the program it is defined. So a variable defined inside function will have scope inside that function. Consider following code snippet,ContinueContinue reading “Variable Scoping and Hoisting in JavaScript”

Invocation patterns in JavaScript

In JavaScript you can invoke a function in four different ways. In this post we will take a look on various invocation patterns. There are four ways a function can be invoked in JavaScript. Four invocation patterns in JavaScript are as follows, Function Invocation Pattern Method Invocation Pattern Constructor Invocation Pattern Indirect Invocation Pattern FunctionContinueContinue reading “Invocation patterns in JavaScript”

Solved: WWAHost.exe remote endpoint was not reachable error in JavaScript Windows Store App

I was working on my office machine. While working I opened a JavaScript based Windows Store Application. When I tried to run application I got following exception, I was baffled due to this exception. After sort of research I found that I was on VPN. I have no idea why on VPN this exception occurred.ContinueContinue reading “Solved: WWAHost.exe remote endpoint was not reachable error in JavaScript Windows Store App”

Step by Step working with Windows Azure Mobile Service Data in JavaScript based Windows Store Apps

In my last post I discussed Step by Step working with Windows Azure Mobile Service Data in XAML based Windows Store Apps . In this post we will have a look on working with JavaScript based Windows Store Apps. Last post was divided in two parts. First part was Configure Windows Azure Mobile Service inContinueContinue reading “Step by Step working with Windows Azure Mobile Service Data in JavaScript based Windows Store Apps”

What is Method Invocation Pattern in JavaScript

In this post we will take a look on “Method Invocation Pattern” in JavaScript. In JavaScript when function is defined as property of object then it is known as Method Assume we have a JavaScript object as following. In studentObject object property findgrade is a function. So we can say findgrade is a method. InvocationContinueContinue reading “What is Method Invocation Pattern in JavaScript”

How to find index of an item in JavaScript Object Array?

Recently while working I came across a scenario. I had to find index of a particular item on given condition from a JavaScript object array. In this post we will see how to find index of object from JavaScript array of object. Let us assume we have a JavaScript array as following, Now if weContinueContinue reading “How to find index of an item in JavaScript Object Array?”

Working with Knockout.js Part 5: Working with visible Binding

Working with Knockout.js Part 4: Observable Arrays Working with Knockout.js Part 3: Working with Observables Working with Knockout.js part 2: Understanding MVVM Getting started with Knockout.js So far we have learnt about different aspects of ViewModel creation in Knockout.js. We learnt and discussed about MVVM, Observable, and Observable Array etc. In this post we willContinueContinue reading “Working with Knockout.js Part 5: Working with visible Binding”