Amit Dhawan

Photo by Toa Heftiba on Unsplash

Spread operator is used to spread the values in an iterable(arrays, objects,strings).

Example:

Spread operator example

Rest parameters is a smart way of passing indefinite number of parameters to function i.e. we don’t restrict our function to take finite number of parameters.

Example:-

Rest parameter example

If this post was helpful, please click the clap 👏 button below a few times to show your support! ⬇⬇

Photo by Noble Mitchell on Unsplash

We developers deal with containers in our day to day life but when we need explain this term to someone in very simplistic language can be a daunting task. With this article I will try to provide a simplistic definition of a container.

It all starts with the OS i.e…