Arrow function also known as flat arrows are more shorter compare to functions. Lets have a look at it. Here is a function written in…
Rest Parameter… It is denoted by 3 dots(…). The dots(…) means gather the remaining parameters into an array. Below shows the code of rest operator.…