From ebd9eca8c15d90eb9ee42de446e1fbfc421923bc Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Sat, 8 Feb 2020 16:54:24 -1000 Subject: [PATCH] Update web-api-javascript.md --- aspnetcore/tutorials/web-api-javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/web-api-javascript.md b/aspnetcore/tutorials/web-api-javascript.md index aac4c38962..f67bde89e9 100644 --- a/aspnetcore/tutorials/web-api-javascript.md +++ b/aspnetcore/tutorials/web-api-javascript.md @@ -30,7 +30,7 @@ For ASP.NET Core 2.2, see the 2.2 version of [Call the web API with JavaScript]( In this section, you'll add an HTML page containing forms for creating and managing to-do items. Event handlers are attached to elements on the page. The event handlers result in HTTP requests to the web API's action methods. The Fetch API's `fetch` function initiates each HTTP request. -The `fetch` function returns a `Promise` object, which contains an HTTP response represented as a `Response` object. A common pattern is to extract the JSON response body by invoking the `json` function on the `Response` object. JavaScript updates the page with the details from the web API's response. +The `fetch` function returns a [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise) object, which contains an HTTP response represented as a `Response` object. A common pattern is to extract the JSON response body by invoking the `json` function on the `Response` object. JavaScript updates the page with the details from the web API's response. The simplest `fetch` call accepts a single parameter representing the route. A second parameter, known as the `init` object, is optional. `init` is used to configure the HTTP request.