Does the JavaScript method array.forEach work in Chrome?

google-chrome, javascript

Solution

Convert the NodeList to an array:

nodes = Array.prototype.slice.call(nodes);

Then you can use `.forEach()` on it.

Problem

Here's my demo. I'm trying to get the JavaScript `forEach` method to work in Google Chrome. Caniuse hasn't been much help. :( Any help would be appreciated! Thanks!

Original source