3 ms·
It makes sense because the DOM is like a huge global, mutable variable. Map and reduce are used in functional programming to create a new immutable variable. fo
by thibautg 9y ago
It makes sense because the DOM is like a huge global, mutable variable. Map and reduce are used in functional programming to create a new immutable variable.
forEach allows to mutate each node from the nodeList.