I am learning about Symbol and iterators in JavaScript.
I've read and watched few videos about them, so they are now more or less clear.
I just would like to understand what my textbook (Eloquent JavaScript) means with this:
Note that the
next,valueanddoneproperty names are plain strings, not symbols. OnlySimbol.iterator, which is likely to be added to a lot of different objects, is an actual symbol.
Why does a property that is likely to be found in different objects need to be a symbol?
Can objOne.iterator and objTwo.iterator as regular properties create problems?