Link Constructors prototypes to create Inheritance in JavaScript

In JavaScript, there are multiple ways to create an object. However, among all the most popular is using a function as a constructor.   A function returns a newly created object if it is called using the new, which is also known as Constructor Invocation Pattern. You can create a function constructor like any other … Continue reading Link Constructors prototypes to create Inheritance in JavaScript

Four Ways to Create a Function in JavaScript

There are four ways a function can be created in JavaScript. They are as follows: A function as a statementA function as an expressionA function as an arrow functionA function created using the Function constructor All four ways of function creation have distinct features such as an arrow function that does not have its own this object, … Continue reading Four Ways to Create a Function in JavaScript

Video – Various ways of creating a function in JavaScript

This video teaches you the various ways of creating a function in JavaScript. There are four ways a function can be created in JavaScript. They are as follows: 1. A function as a Statement 2. A function as an Expression 3. A function as an Arrow function 4. A function using Function constructor   https://youtu.be/1koTc_lhZLUContinue reading Video – Various ways of creating a function in JavaScript

What is the Rest Parameter in a Function?

Learn full article on Infragistics blog A JavaScript function can take any number of parameters. Unlike other languages like C# and Java, you can pass any number of parameters while calling a JavaScript function. JavaScript functions allows unknown number of function parameters. Before ECMAScript 6, JavaScript had arguments variable to access these unknown or variable … Continue reading What is the Rest Parameter in a Function?

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 The … Continue reading 11 things about JavaScript functions that .NET developers should know: Part 2

11 things about JavaScript functions .NET developers must know: Part 1

I have often seen .NET developers struggle with the JavaScript. They try to compare C# functions with the JavaScript functions and usually do some minor but conceptual mistakes while using it. As we all will agree that JavaScript functions are the backbone of the JavaScript programming language, and if one has good understanding of the … Continue reading 11 things about JavaScript functions .NET developers must know: Part 1

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 Function … Continue reading Invocation patterns in JavaScript