Function Declaration vs Function ExpressionFunction Declaration: A function declaration defines a function with the specified parameters. The function declarations are processed before the code block is executed. They are visible everywhere in the block. function sayHi () { ...some code h...2 min read·yaswanthmyneni.hashnode.devMay 20, 2022
Pure and Impure functionsWhat are functions? The function is a piece of code that will help if we are writing the same code repeatedly. function iAmFunction() { ...some logic here } We will call the above function like this as shown below iAmFunction(); What are pure an...3 min read·yaswanthmyneni.hashnode.devMay 19, 2022
Let in Javascriptlet: The let statement declares a block-scoped, local variable. syntax: let x ; let x = 2 ; Description: In the usage of let, we can divide the let concepts into three categories, they are Scoping rules. Re-declaration. Temporal dead zone. Scopin...4 min read·yaswanthmyneni.hashnode.devAug 18, 2021