score:0

Change:

.style("fill", this.color)
.call(drag);
.on("contextmenu", remove)

To:

.style("fill", this.color)
.call(drag)
.on("contextmenu", remove)

Remove your semicolon. For future reference,

Unexpected token

is always a syntax error. Once you fix the syntax, the error goes away.


Related Query