From 4cb656f12dfaa42ea6a9dd61c1f47b133484500c Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Thu, 11 Jan 2018 22:02:31 -0800 Subject: [PATCH] Update dom.md --- front-end/dom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/dom.md b/front-end/dom.md index b0830e8f..e6671939 100644 --- a/front-end/dom.md +++ b/front-end/dom.md @@ -86,7 +86,7 @@ A `NodeList` can contain any node type, but an `HTMLCollection` is supposed to o **How do you convert an `HTMLCollection` or `NodeList` into an array?** -``` +```js const nodelist = document.querySelectorAll('div'); // Array.from const divArray = Array.from(nodelist);