Which browser ? In this case, forEach is implemented with Javascript 1.6. According to [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach) forEach is supported from IE9.