Message from JavaScript discussions

March 2019

— Don’t use moment. Is way too big.
Use alternatives like date-fns or dayjs

Message permanent page


Hello, i don't get it. Why do i get no output? When i uncomment the console.log(json) inside that function, i get the output i want.

— What's the best js framework for Dom manipulation as well as working with API at the same time

— 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)

Message permanent page

— 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