Skip to content

Commit

Permalink
Fix it's -> its typo in Mongoose page in Express tutorial (#32440)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnFreund authored Feb 26, 2024
1 parent 5dfd6b4 commit 7013509
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7013509

Please sign in to comment.