From 7013509db5f18a614db773cd475f6bb806f47a9d Mon Sep 17 00:00:00 2001 From: On Freund Date: Mon, 26 Feb 2024 22:32:06 +0200 Subject: [PATCH] Fix it's -> its typo in Mongoose page in Express tutorial (#32440) --- files/en-us/learn/server-side/express_nodejs/mongoose/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/learn/server-side/express_nodejs/mongoose/index.md b/files/en-us/learn/server-side/express_nodejs/mongoose/index.md index 314e69c71aae4e6..6fb2cda44e5eb9d 100644 --- a/files/en-us/learn/server-side/express_nodejs/mongoose/index.md +++ b/files/en-us/learn/server-side/express_nodejs/mongoose/index.md @@ -107,7 +107,7 @@ Other code can execute while the server is waiting for the database operation to JavaScript has a number of mechanisms for supporting asynchronous behavior. Historically JavaScript relied heavily on passing [callback functions](/en-US/docs/Learn/JavaScript/Asynchronous/Introducing) to asynchronous methods to handle the success and error cases. In modern JavaScript callbacks have largely been replaced by [Promises](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). -Promises are objects that are (immediately) returned by an asynchronous method that represent it's future state. +Promises are objects that are (immediately) returned by an asynchronous method that represent its future state. When the operation completes, the promise object is "settled", and resolves an object that represents the result of the operation or an error. There are two main ways you can use promises to run code when a promise is settled, and we highly recommend that you read [How to use promises](/en-US/docs/Learn/JavaScript/Asynchronous/Promises) for a high level overview of both approaches.