Call class method within try catch block? – Javascript
I have encountered with something like this: class Example { // ... async #privateMethod() { return true } static staticMethod() { try { // can't access #privateMethod this.#privateMethod() } catch (error) { console.log('error', error); } } } I want to…