1.

What is spread, default and rest parameter?

Answer»

Spread Operator- Donated by ‘...’ and is followed by the variable. The syntax of the spread operator would look like this for example:- ‘...X’. Spread operators manipulated objects and arrays which is the prime reason it is used in ES6. It is used for copying the property of one object to another.

Default Operator- In order to initialize a function using default values, the default operator is deployed. The parameter’s VALUE can be anything- a number or a function or null.

Rest Parameter- This operator is used for recovering all the arguments that are required to invoke a function. This allows US to put items belonging to different CATEGORIES separate. The rest parameter allows combining the parameters in a common array parameter.

12. What is Webpack ?

Webpack allows you to create a pile of the javascript files that are usable in the browser. With Webpack, we can BUILD the dependency graph, do application processing. With the dependency graph, one can map every module of the project. This helps in matching up with project requirements.



Discussion

No Comment Found