Is it possible to use the exported variable in class in the same file its exported?
exports.var = "something";
class c {
constructor() {
this.var = var;
}
}
export.class = class;
Advertisement
Answer
Yes. this.var = exports.var;
answer by Patrick Hund