From 0ad42f60d65f6985d77c60ee8a53d2de7256d225 Mon Sep 17 00:00:00 2001 From: Chalarangelo Date: Sun, 4 Sep 2022 12:45:09 +0300 Subject: [PATCH] Fix typos --- snippets/removeElement.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/removeElement.md b/snippets/removeElement.md index 56fe965dc..909bad5b7 100644 --- a/snippets/removeElement.md +++ b/snippets/removeElement.md @@ -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);