I don't know the reason of this error

Hello @silverhee,

You did not format your code.

Please read:

I get these errors in the p5.js Web Editor:

Try changing the class name to something other than Symbols (I used Zymbols) and got the following:

There may have been a conflict with the name of the class you used:
Symbol.iterator - JavaScript | MDN

Keep at it!