I call action.word()
and console.log(action.word())
I want path "I LOVE U" . Can I do?
Asked
Active
Viewed 19 times
0

Community
- 1
- 1

Achiraya Srisupap
- 25
- 1
- 2
- 7
-
No, you need to do the logging (or whatever you actually want to do with the result) asynchronously. – Bergi Nov 11 '18 at 16:27
-
Hook the promise's resolution and access the `text` property on the object you receive. See the linked question's answers, particularly in the places where they *consume* promises (using `.then`/`.catch` or, within an `async` function, `await`). – T.J. Crowder Nov 11 '18 at 16:31