Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Is this issue specific to Google Chrome? Commented May 17, 2013 at 18:37
  • [1,2,3].forEach(console.log) works fine in Firefox. Commented May 17, 2013 at 18:38
  • @MathieuImbert I know that in IE console.log returns error itself unless debug console is on. I suspect it is not an ordinary function, but I'm not sure. Maybe each browser implement it different way? Commented May 17, 2013 at 18:40
  • For what it's worth, you can always do console.log(1, 2, 3); to see three separate elements. That may not fit your use case, though. Commented May 17, 2013 at 18:42