diff --git a/2-ui/1-document/03-dom-navigation/1-dom-children/solution.md b/2-ui/1-document/03-dom-navigation/1-dom-children/solution.md index decfa62c7..ff0e25e4d 100644 --- a/2-ui/1-document/03-dom-navigation/1-dom-children/solution.md +++ b/2-ui/1-document/03-dom-navigation/1-dom-children/solution.md @@ -1,27 +1,27 @@ -There are many ways, for instance: +E' possibile farlo in diversi modi, ad esempio: -The `
` DOM node: +Il nodo DOM `
`: ```js document.body.firstElementChild -// or +// oppure document.body.children[0] -// or (the first node is space, so we take 2nd) +// oppure (il primo nodo è uno spazio, quindi prendiamo il secondo) document.body.childNodes[1] ``` -The `