The spread operator is a useful and quick syntax for adding items to arrays, combining arrays or objects, and spreading an array out into a function’s arguments. #javascript#javascriptconcepts#developer#coding
Often when you write code, you want the same block of code to run over and over again a certain number of times. So, instead of adding several almost equal code-lines in a script, we can use loops. #javascript#javascriptconcepts
The javascript engine treats all variables declarations as if they are declared at the top of their scope. Variables declared with var keyword are moved to the top of a functional scope if declared in a function and global scope if declared outside of a function. #javascript
Variables declared with var are also automatically initialized with "undefined". Let and Const are moved to the top of their available block scope.
#javascript#javascriptconcepts