In Javascript, I am unable to call other function in a class.
An outline of my code:
class Object {
async saveValue {
this.render();
}
async render() {
...
}
}
The error is Uncaught (in promise) TypeError: this.render is not a function.
Could anyone point me to the right direction to fix the code?