Message from JavaScript discussions

October 2018

— *sigh*

— 

class TEST {
constructor() { this.test = 'hello'; }
static abc() {
console.log(this.test); //undefined
}
}

— So basically statement container as expression?

— 

do {
if(x > 2) true;
else false;
}

No return required, Ruby style :D

— Yes

— Seems like going the wrong way

— I want to access constructor variable

— The right way

— Wouldn't this always evaluate to false?

— .

— Remove static

— Fixed