To understand function hoisting, let us start by considering the code listed below:In any other programming language, the output here would be a reference error. However, in JavaScript you will get undefined as the output. Why? Because JavaScript hoists variables at the top of the execution context. An execution context could be the function inContinueContinue reading “Simplifying function hoisting in JavaScript”
Author Archives: Dhananjay Kumar
What is the arguments object in a JavaScript function?
A JavaScript function has array-like objects called arguments which correspond to the arguments passed to the function. All arguments passed to a JavaScript function can be referred using the arguments object. Now as we get started, let’s consider the code listed here:In the above function, num1 and num2 are two arguments. You can refer toContinueContinue reading “What is the arguments object in a JavaScript function?”
What is a Default Parameter in a JavaScript function?
A JavaScript function can have default parameters values. Using default function parameters, you can initialize formal parameters with default values. If you do not initialize a parameter with some value, then the default value of the parameter is undefined. While calling function foo, you are not passing any parameter, so the default value of variableContinueContinue reading “What is a Default Parameter in a JavaScript function?”
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 variableContinueContinue reading “What is the Rest Parameter in a Function?”
What is “let” statement in JavaScript?
Using the let statement, you can create Block scoped local variables in JavaScript. The let statement was introduced in the ECMAScript 6 standard of JavaScript. Before ECMAScript 6, JavaScript had three types of scoping: Global scoping Functional scoping Lexical scoping To explore let statement in detail, consider the code snippet given below: https://gist.github.com/debugmodedotnet/d7bb15f004965cb03ff532e19680195f You willContinueContinue reading “What is “let” statement in JavaScript?”
Video- what is let statement in JavaScript
In this video , learn “what is let statement in JavaScript “ https://www.youtube.com/watch?v=QBFNs4lJ-IM Since, I have recorded this video in Starbucks, there is some noise. I am sorry for that. https://gist.github.com/debugmodedotnet/5d8d73fa3542ad13f5959ce2629c5bec feedback?
Join free webinar on “Step by Step Getting Started with Angular 4”
On behalf of Infragistics , I am hosting a free webinar on “Step by Step Getting Started with Angular 4”. To attend register here . I invite you to attend this webinar on 20 July 2017 Thursday at 11 AM. This is an opportunity for you to learn Angular 4 application development from comfort ofContinueContinue reading “Join free webinar on “Step by Step Getting Started with Angular 4””
Thanks Microsoft for awarding me Most Valuable Professional Award 8th times in a row
I am very happy and excited to share that once again I have received prestigious Microsoft Most Valuable Professional AwardFirst time I got Microsoft MVP award in 2010 in Connected System Development specialization. In 2015, my specialization got changed to ASP.NET/IIS and in 2016, it changed to Visual Studio and Development. Once again, in 2017,ContinueContinue reading “Thanks Microsoft for awarding me Most Valuable Professional Award 8th times in a row”
From where I learnt advanced Angular?
Recently, I had a requirement to deliver training and consulting on advanced Angular topics to a client. Even though, I am very comfortable with Angular, I was a bit worried about so-called these “ADVANCED TOPICS”. I browsed through many blogs, tutorials, video courses etc. However, I was not felling satisfied and there was a nervousnessContinueContinue reading “From where I learnt advanced Angular?”
How to upgrade to latest Angular CLI
To check which version of Angular CLI is installed on your machine, run the command ng –version as shown in the image below: As you see that on my development machine, Angular cli version 1.0.0 is installed. At the time of writing of this post, latest version of Angular CLI was 1.1.3. To upgrade toContinueContinue reading “How to upgrade to latest Angular CLI”