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...May 20, 2022 · 2 min readyaswanthmyneni.hashnode.dev
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...May 19, 2022 · 3 min readyaswanthmyneni.hashnode.dev
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...Aug 18, 2021 · 4 min readyaswanthmyneni.hashnode.dev