class Match {
JSDOM = jsdom;
Discord = require("discord.js");
jsdom = require("jsdom");
…
}
This is the code I use, and I get the error:
JSDOM = jsdom();
^
SyntaxError: Unexpected token =
Why? This should work right? This only happens when I try to run the code on repl.it. When I run it on my computer it works fine.