Home:ALL Converter>SyntaxError: Unexpected token =

SyntaxError: Unexpected token =

Ask Time:2020-09-25T23:58:51         Author:delta-alph

Json Formatter

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.

Author:delta-alph,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/64067565/syntaxerror-unexpected-token
yy