0

I call action.word() and console.log(action.word()) I want path "I LOVE U" . Can I do?

image description here

Community
  • 1
  • 1
  • 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

0 Answers0