Fix typos

This commit is contained in:
Chalarangelo
2022-09-04 12:45:09 +03:00
parent bf573e8e8a
commit 0ad42f60d6

View File

@ -10,8 +10,8 @@ lastUpdated: 2021-01-07T00:20:34+02:00
Removes an element from the DOM.
- Use `Element.parentNode` to get the given element's parent node.
- Use `Element.removeChild()` to remove the given element from its parent node.
- Use `Node.parentNode` to get the given element's parent node.
- Use `Node.removeChild()` to remove the given element from its parent node.
```js
const removeElement = el => el.parentNode.removeChild(el);