...

/

Untitled Masterpiece

Test your understanding of handling errors and debugging an Angular application.

Technical Quiz
1.

Suppose we want to catch an error in an HTTP request. Which is the correct approach for it?

A.
catchError((error: HttpErrorResponse) => {
      console.error(error);
      return throwError(() => error);
})
B.
catchError((HttpErrorResponse: error) => {
      console(error);
      return throwError(() => error);
})
C.
catchError((HttpErrorResponse:error) => {
      console.error(error);
      return error;
})
D.
catchError((error: HttpErrorResponse) => {
      console.error(error);
      return throwError();
})

1 / 5
...