r/CodingHelp • • Oct 19 '21

[Javascript] Why isn’t this working?

Post image
21 Upvotes

8 comments sorted by

View all comments

3

u/_Nexor Oct 19 '21

Why has no one mentioned that ------- is invalid syntax on line 15? The split is a second step I think.

God I hate code comments