promiseHooks.onSettled(settled) in Node.js
promiseHooks.onSettled(settled) (in node js) sits in an API handler. Neha’s job is fetch a user then marks. Write that first.
Do promiseHooks.onSettled(settled) (in node js) once by hand. async function + try/catch. Change one input. Say the new result out loud.
Skip promiseHooks.onSettled(settled) (in node js) and unhandled rejection shows up in an API handler.
Use promiseHooks.onSettled(settled) (in node js) when fetch a user then marks must stay clear. If a simpler Node.js step works, use that instead.
promiseHooks.onSettled(settled) (in node js) trap: unhandled rejection. Neha loses marks for that every viva.
promiseHooks.onSettled(settled) (in node js) is not a lonely heading. Neha ties it to fetch a user then marks.
Viva for promiseHooks.onSettled(settled) (in node js): what it is → async function + try/catch → the mistake (unhandled rejection).
Say promiseHooks.onSettled(settled) (in node js) in one breath, then async function + try/catch, then unhandled rejection.