19.
What does the spread operator (...) do in JavaScript ES6?
It spreads the values of an iterable (like NodeList or Set) into an array.
It spreads the characters of a string into separate elements of an array.
It spreads the properties of an object onto another object.
It spreads the elements of an array into a new array.
Correct: A, B, C, D
The spread operator in JavaScript ES6 can be used in various contexts. It allows us to spread the elements of an array, the properties of an object, the characters of a string, or the values of an iterable, like NodeList or Set, into a new array or object. This syntax provides a concise way to clone, merge, or transform data structures.