D afraid of h the spread operators the sprint operator.
Yes.
You will sort of pull the value from an array or extract the properties from an object.
For example if we create an oil way which contains the value of 1 3 5 and we also create a new array
which contains 2 and 4.
If we want to also add the where the 0 from the 0 away we have to use the.
Operator
and then add the 2 and 4 behind and then we try to print out the new away.
Now you can say we contained or the three values from the 0 away and also the 0 The deal values which
is 2 and 4 mastic the object as an example
if the 0 object which contains
a name which is Peter
then height is one hundred and seventy five.
Now if the new object want to have the 0 object properties we have to use this special operator and
then add the properties that we want to add.
For example we have H now if we print out a new object
you can see it contained the name height and also the H.
But if you is not the age.
This is the height for example this is height and the one hundred and eighty eight become updated values
rather than adding the new properties the spread operator not only applied on the array and object it
also can be used in the function.
Now you can see the bump up all arguments this is used to when you do not sure how many arguments do
you have.
You can use but but thought for example if we have one argument one permit us you can see it can print
out the apple
and if we continue add another string
we should change it too I'd give you a print out all range and if we continue to add banana it will
also open out in console
cases because we're using portable argument each time we add the word deal it will become an array so
we can for loop to a loop fluid of values and print out in the console.