API app, I created a class with a simple method that do perform console.log(), then I return a value from it. when I call the function from a route and then I add .then( returnedResult => {} ) to execute syncly, but error came like, cannot read property then of undefined. How to fix i. what is the right way?
Code?
Обсуждают сегодня