Skip to content

Commit 4973824

Browse files
authored
Update article.md
Corrected grammatical errors.
1 parent ff042a0 commit 4973824

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

5-network/07-url/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
The built-in [URL](https://url.spec.whatwg.org/#api) class provides a convenient interface for creating and parsing URLs.
55

6-
There are no networking methods that require exactly an `URL` object, strings are good enough. So technically we don't have to use `URL`. But sometimes it can be really helpful.
6+
There are no networking methods that require exactly a `URL` object, strings are good enough. So technically we don't have to use `URL`. But sometimes it can be really helpful.
77

8-
## Creating an URL
8+
## Creating a URL
99

1010
The syntax to create a new `URL` object:
1111

@@ -63,14 +63,14 @@ Here's the cheatsheet for URL components:
6363

6464

6565
```smart header="We can pass `URL` objects to networking (and most other) methods instead of a string"
66-
We can use an `URL` object in `fetch` or `XMLHttpRequest`, almost everywhere where an URL-string is expected.
66+
We can use a `URL` object in `fetch` or `XMLHttpRequest`, almost everywhere where a URL-string is expected.
6767

68-
Generally, `URL` object can be passed to any method instead of a string, as most method will perform the string conversion, that turns an `URL` object into a string with full URL.
68+
Generally, `URL` object can be passed to any method instead of a string, as most method will perform the string conversion, that turns a `URL` object into a string with full URL.
6969
```
7070
7171
## SearchParams "?..."
7272
73-
Let's say we want to create an url with given search params, for instance, `https://google.com/search?query=JavaScript`.
73+
Let's say we want to create a url with given search params, for instance, `https://google.com/search?query=JavaScript`.
7474
7575
We can provide them in the URL string:
7676

0 commit comments

Comments
 (0)