Category: Uncategorized
-
JavaScript for C# developers…
-
Function Scope in JavaScript – JavaScript for C# developers
Below content is an excerpt from my book – “JavaScript for C# developers“. Scope in javascript works completely different from how it works in C#. In javascript, we have both block scope and function scope. However, the predominant scope used in javascript is function scope till ES5. We would discuss later in this chapter about the rules which javascript…
-
Arrow functions in JavaScript – JavaScript for C# developers
Below content is an excerpt from my book – “JavaScript for C# developers“. Starting from ES6, there is a new way to declare a function in javascript – Arrow functions. This is similar to the function expression in ES5 but has a concise syntax. Despite the fact that both constructs – functions in ES5 and arrow functions from…