in the following example, do the assignment statements execute in order?
in the following example, do the assignment statements execute in order?
it seems to be failing
const externalClass = require('./externalClass');
class testClass {
constructor() {
this.externalClass = new externalClass();
this.test = function() {
//this.externalClass.log();
console.log(`this.externalClass is: ${this.externalClass}`);
}
}
}such that this.externalClass can be used in this.test functionit seems to be failing
No any search results
You already invited:
1 Answers
victor - System developer
Upvotes from:
module.exports = class {constructor(){
console.log("hello world");
}
}