Click here to Skip to main content
15,903,033 members
Articles / Programming Languages / Javascript

Web Development Pitfall No.1: Confusing a DOM Collection with a JS Array

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
10 Dec 2015CPOL3 min read 7.9K   4  
Don't confuse a DOM collection with a JS array: Array functions, such as the forEach looping method, cannot be applied to a DOM collection!

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer
Germany Germany
Researcher, developer, instructor and cat lover.

Co-Founder of web-engineering.info and the educational simulation website sim4edu.com.

Comments and Discussions