In the book of David Flanagan in the chapter “Properties and Methods of the Universal Object Class”, he encountered the term enumerated and non-enumerated properties. Once there are enumerated properties, then there are non enumerable properties. I would like to know what these properties are and how they differ. On the Internet I did not find anything suitable on this topic. Therefore, I ask for help here. Thank you all in advance.
Excerpt from the book:
Note: all user-defined object properties are enumerable. Inherited properties are usually not enumerated (the topic of property inheritance is discussed in Chapter 9), so this method almost always returns the same value as the
hasOwnProperty()method.
enumerable- lexxl