skip to Main Content

Javascript – How can i make code execution wait with async await?

I have an init function wich i wrote in a ridiculous way just to examine async/await: function init() { console.log(1) accountsStore.getAccounts().then(() => { categoriesStore.getCategories().then(() => { sheetItemStore.getSheetItems().then(() => { accountsStore.getTotal().then(() => { sheetItemStore.getTotals().then(() => { balanceStore.getGrandTotal().then(() => { console.log(8) })…

VIEW QUESTION
Back To Top
Search