Advance JavaScript Course
About Lesson

The Spread operator allows an iterable to expand in places where 0+ arguments are expected. It is mostly used in the variable array where there is more than 1 value is expected. It allows us the privilege to obtain a list of parameters from an array.

Syntax:

let variablename1 = […value];

In the above syntax, … is a spread operator which will target all values in a particular variable. When … occurs in the function call or like, it’s called a spread operator. Spread operator can be used in many cases, like when we want to expand, copy, or concat, with math object.

Concat(): The concat() method provided by javascript helps in the concatenation of two or more strings(String concat() ) or is used to merge two or more arrays. In the case of arrays, this method does not change the existing arrays but instead returns a new array.

Math: The Math object in javascript has different properties that we can make use of to do what we want like finding the minimum from a list of numbers, finding the maximum, etc. Consider the case that we want to find the minimum from a list of numbers,

Exercise Files
No Attachment Found
No Attachment Found
Join the conversation

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.