Javascript Async Await with Loops, Error Handling, Promise.All and Koa

preview_player
Показать описание

We also build a little koa server to assist in passing errors through, and also how to handle errors in Koa's middleware
Рекомендации по теме
Комментарии
Автор

This was asked in a recent front end interview via screenshare.

mmmmmmm
Автор

Hi

I get a 405 Method not allowed error.
After writing
"app.use (router.allowedMethods ());"
below the
"app.use (router.routes ());" line.
I don't find the reason for this Error.
Could u give me some hint i can check?

thomas
Автор

instead of Promise.all() can i use a simple foreach or for loop?

Mr_aviation_shorts
Автор

Couldn't you have just used Promise.allSettled()?

EricAnastas