Tag Archives: declaration

JavaScript: Variations Between Utilizing var, let, and const Key phrases for Variable Declaration – JavaScript Dev Feed

JavaScript: Variations Between Utilizing var, let, and const Key phrases for Variable Declaration The var key phrase was the unique key phrase used to declare variables in JavaScript. Launched in ES2016, let and const are two new key phrases used for declaring variables. This text will clarify the variations between how the var, let, and…

Read More

Function Declaration VS Function Expression In JavaScript – JavaScript Dev Feed

Function Declaration VS Function Expression In JavaScript Basically, function declaration and function expression are two ways of creating a function in JavaScript. But how do they differ? And how do you know which of them to use when creating functions? Function Declaration Here, the function is defined starting with the function keyword then a name…

Read More

TypeScript: Namespace declaration merging for organizing types – Developers Feed

TypeScript: Namespace declaration merging for organizing types Introduction Declaration merging is a concept in TypeScript which means the TS compiler will merge two or more separate declarations – with the same name – into one single declaration. Ambient namespace declaration A TypeScript namespace allows you to access its exported values or types using dot-notation. While…

Read More

JavaScript variables declaration – JavaScript Dev Feed

JavaScript variables declaration JavaScript has a different variable declaration technique than most programming languages. var declares the variable within the function scope, let declares the variable in the block scope, and variables can be declared without any operator in the global scope;however, global scope should be avoided at all times. For type checking, typeof should…

Read More