How to create constants in JavaScript?

Constants are immutable variables which value cannot be changed. Once, you have created a constant, its value cannot be changed. While coding in JavaScript, many times you may have come across a requirement to create constants. Before ECMA Script 6, it was not very easy to create constants in JavaScript. In this post, I willContinueContinue reading “How to create constants in JavaScript?”

How to print or enumerate properties of a JavaScript object?

I usually come across the following requirements, How to print name of all the properties of an object? How to print only the methods of an object? How to print even non-enumerable properties of an object? In this post, we will explore all the options to iterate and print properties of a JavaScript object. LetContinueContinue reading “How to print or enumerate properties of a JavaScript object?”

Recap: Angular 2 Road Trip – Coimbatore

Recap of Angular Road Trip – Ahmedabad Recap of Angular 2 Road Trip – Gurgaon Recap of Angular 2 Road Trip – Indore To start with, I thank my employer Infragistics for all support in making these community events, specially Angular 2 road trip successful. We have awesome set of controls for your AngularJS 2,ContinueContinue reading “Recap: Angular 2 Road Trip – Coimbatore”

How to Create a YouTube AngularJS Directive

I have often seen, developers come across requirement to embed a YouTube video in an AngularJS application. In this post, we will learn to create a simple YouTube AngularJS directive and also to use some of the popular directive from the GitHub. We will follow step by step approach to create the YouTube custom directive.ContinueContinue reading “How to Create a YouTube AngularJS Directive”

How to create Custom Filters in AngularJS

Have you ever used filters with the ng-repeat directive as shown in the listing below? If so, then you’ve used a filter in an AngularJS application. AngularJS provides us many in-built directives like search. If required, AngularJS also allows us to create custom filters, which we’ll explore in this post. AngularJS gives us a simpleContinueContinue reading “How to create Custom Filters in AngularJS”

Simplifying the JavaScript Callback function for .NET developers

In JavaScript, functions are objects, and they can: Be passed as an argument to another function Return as a value from a function Be assigned to a variable Let’s assume that you have a JavaScript function (let’s call it function A) with the following properties: Function A takes another function (let’s call this one functionContinueContinue reading “Simplifying the JavaScript Callback function for .NET developers”

Objects in JavaScript for .NET developers – Part 1

Read full article on the Infragistics blog Here are some fun facts for you: JavaScript is not an object oriented language, but almost everything in JavaScript is an object. JavaScript does not have classes, and we can create an object from an object. A function can be used as a constructor, and returns a newlyContinueContinue reading “Objects in JavaScript for .NET developers – Part 1”

11 things about JavaScript functions that .NET developers should know: Part 2

Read full article on the Infragistics blog This is the second part of the series in 11 Things about JavaScript Functions that .NET Developers Should Know . In part 1 we discussed the following topics, JavaScript functions as an expression JavaScript functions as a statement Return statements in JavaScript functions Parameters in JavaScript functions TheContinueContinue reading “11 things about JavaScript functions that .NET developers should know: Part 2”