Message from JavaScript discussions

March 2019

— Please help


Because you’re executing an async function. And that’s perfect to communicate with apis.

the last line should be like: getData(VOTE_RECORD).then(console.log)

— The return in async functions are passed as argument for the resolved promise

— Async functions executions resolve in promises.

— Have you tried frontend frameworks like React or Vue?

— I used plain js till date

— You may want to start using frontend frameworks if you need a framework to manipulate dom.

— Plus i wanna work with API

— Any frontend framework will do

— Like

— Thaaaanks a lot! I will try it and will read more about promises . :)

— Like?