Sobes.tech
Middle

What does the then method return in a Promise?

sobes.tech AI

Answer from AI

The then method on a Promise object returns a new Promise. This new Promise allows chaining asynchronous operations, where the result of the previous step is passed to the next. If a value is returned in the then handler, it becomes the result of the new Promise. If another Promise is returned, the chain will wait for its resolution.

What does the then method return in a Promise… - sobes.tech