JavaScript Syntax Soup: 「p in o」 vs 「for (p in o) {…}」

,

Another episode of syntax soup.

JavaScript Syntax Soup: 「p in o」

In JavaScript, you have these syntax:

The first looks the same as part of the second, but they have nothing to do with each other. 〔➤ JavaScript: Property, Prototype Chain, Enumerable: Accessing & Listing Properties

Soup. Soup. It's All Good Soup.

blog comments powered by Disqus