Update document, window

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-20 11:46:23 +03:00
parent 5c344ae3e3
commit 52880f08ee
14 changed files with 16 additions and 16 deletions

View File

@ -6,7 +6,7 @@ tags: browser,string,intermediate
Encode a set of form elements as a query string.
- Use the `FormData` constructor to convert the HTML `form` to `FormData`, `Array.from()` to convert to an array, passing a map function as the second argument.
- Use `Array.prototype.map()` and `window.encodeURIComponent()` to encode each field's value.
- Use `Array.prototype.map()` and `encodeURIComponent()` to encode each field's value.
- Use `Array.prototype.join()` with appropriate argumens to produce an appropriate query string.
```js