A function in JavaScript is a piece of code contained within a block with a name associated to it. These are building blocks for almost every program that one tends to write. In simple words a function is a subprogram which is capable of performing a specific task.
Read moreAs the name suggests the spread operator spreads or expands an iterable such as an array or string into individual elements.
Read more