Intermediate JavaScript
Q54 / 100

What is a Symbol.iterator used for?

Correct! Well done.

Incorrect.

The correct answer is B) Making an object iterable by defining how for...of and spread iterate over it

B

Correct Answer

Making an object iterable by defining how for...of and spread iterate over it

Explanation

Implementing [Symbol.iterator]() on an object allows it to be used in for...of loops, spread, and destructuring.

Progress
54/100