doSomethingAsync(function(error, result))
doSomethingAsync() .then(function(result)) .catch(function(error))
;(async function () { try { result = await doSomethingAsync() // handle result } catch (error) { // handle error } })()