I'm getting in trouble with a small problem and I wish that somebody can help me resolving this fast. Here is my code :
class Client {
/**
* @param {ClientOptions} [options] Options for the client
*/
constructor(options = {}) {
super();
this.lnk = "https://marketpala.glitch.me";
this.endpoints = [
"/commandes.json",
"/users.json",
"/blacklist.json",
"/infov.json",
"/reserved.json"
]
}
}
Here is the code to export the client :
module.exports = {
Client: require('./client/Client')
}
Here is the code I use to test my client :
const tst = require('./palamazon')
let t = new tst.Client()
And here is the error I get :
super();
^^^^^
SyntaxError: 'super' keyword unexpected here
Hope somebody can help me!
(I'm coding in javascript)