So i've ran into a problem right now. I want to log the MyMethod method to the console, but somehow the result is empty and it happens when i have a while(true) loop right after, but i dont know why.
Code:
class MyClass {
public static command;
private static MyMethod() {
console.log("test1");
console.log("test2");
console.log("test3");
}
public static DoSomething() {
this.command = this.MyMethod;
console.log(this.ShowTextAdapter);
console.log(this.ShowTextAdapter);
console.log(this.ShowTextAdapter);
console.log(this.ShowTextAdapter);
console.log(this.ShowTextAdapter);
while (true) {}
}
}