ECMAScript6 007 – Destructuring
Passing an object as 2 parameters: The two most used data structures in JavaScript are Object and Array. Objects allow us to create […]
Passing an object as 2 parameters: The two most used data structures in JavaScript are Object and Array. Objects allow us to create […]
First example (old way): and it could be optimized to (2 arguments) 1 argument: 0 arguments: if it has a […]
This operator spread the content of 1 object into another. Example: Using 3 points before arrays to list the elements […]
Use backticks to preserve the string structure. inluding spaces. Also knows as “template literals“ Output: Practical application: Output: (usable html […]
Var is global… let is temporary A weird return: Output: Undefined, because of the Hoisting JavaScript Initializations are Not Hoisted […]