But in case of rejection, it will throw an error so we should handle errors while working with promises. Using try/catch block. const asyncTask ...
確定! 回上一頁