Skip to content

Commit 4cb656f

Browse files
authored
Update dom.md
1 parent 8396d8e commit 4cb656f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front-end/dom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ A `NodeList` can contain any node type, but an `HTMLCollection` is supposed to o
8686

8787
**How do you convert an `HTMLCollection` or `NodeList` into an array?**
8888

89-
```
89+
```js
9090
const nodelist = document.querySelectorAll('div');
9191
// Array.from
9292
const divArray = Array.from(nodelist);

0 commit comments

Comments
 (0)